pub(crate) struct FailureResult {
kind: FailureResultKind,
message: Option<String>,
}Fields§
§kind: FailureResultKind§message: Option<String>Implementations§
Source§impl FailureResult
impl FailureResult
Sourcepub(crate) fn validation_error() -> Self
pub(crate) fn validation_error() -> Self
Failure result is a validation error.
Sourcepub(crate) fn with_message(self, message: impl Display) -> Self
pub(crate) fn with_message(self, message: impl Display) -> Self
Message associated with a failure result.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FailureResult
impl RefUnwindSafe for FailureResult
impl Send for FailureResult
impl Sync for FailureResult
impl Unpin for FailureResult
impl UnwindSafe for FailureResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more