pub struct FormatError { /* private fields */ }Expand description
Typed, artifact-naming persisted-format validation failure.
Implementations§
Source§impl FormatError
impl FormatError
Sourcepub fn new(
artifact: impl Into<String>,
check: FormatCheck,
detail: impl Into<String>,
) -> Self
pub fn new( artifact: impl Into<String>, check: FormatCheck, detail: impl Into<String>, ) -> Self
Creates an artifact-scoped validation error.
Sourcepub const fn check(&self) -> FormatCheck
pub const fn check(&self) -> FormatCheck
Returns the exact failed validation check.
Sourcepub const fn values(&self) -> &FormatValues
pub const fn values(&self) -> &FormatValues
Returns stable typed value-bearing facts for this validation failure.
Trait Implementations§
Source§impl Clone for FormatError
impl Clone for FormatError
Source§impl Debug for FormatError
impl Debug for FormatError
Source§impl Display for FormatError
impl Display for FormatError
impl Eq for FormatError
Source§impl Error for FormatError
impl Error for FormatError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<FormatError> for ManifestError
impl From<FormatError> for ManifestError
Source§fn from(error: FormatError) -> Self
fn from(error: FormatError) -> Self
Converts to this type from the input type.
Source§impl From<FormatError> for SegmentError
impl From<FormatError> for SegmentError
Source§fn from(error: FormatError) -> Self
fn from(error: FormatError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FormatError
impl PartialEq for FormatError
impl StructuralPartialEq for FormatError
Auto Trait Implementations§
impl Freeze for FormatError
impl RefUnwindSafe for FormatError
impl Send for FormatError
impl Sync for FormatError
impl Unpin for FormatError
impl UnsafeUnpin for FormatError
impl UnwindSafe for FormatError
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