pub struct ContentValidationError { /* private fields */ }Expand description
Error type for content validation failures.
Implementations§
Source§impl ContentValidationError
impl ContentValidationError
Sourcepub fn new(message: impl Into<String>) -> ContentValidationError
pub fn new(message: impl Into<String>) -> ContentValidationError
Creates a new validation error with the given message.
Trait Implementations§
Source§impl Clone for ContentValidationError
impl Clone for ContentValidationError
Source§fn clone(&self) -> ContentValidationError
fn clone(&self) -> ContentValidationError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContentValidationError
impl Debug for ContentValidationError
Source§impl Display for ContentValidationError
impl Display for ContentValidationError
Source§impl Error for ContentValidationError
impl Error for ContentValidationError
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 PartialEq for ContentValidationError
impl PartialEq for ContentValidationError
impl Eq for ContentValidationError
impl StructuralPartialEq for ContentValidationError
Auto Trait Implementations§
impl Freeze for ContentValidationError
impl RefUnwindSafe for ContentValidationError
impl Send for ContentValidationError
impl Sync for ContentValidationError
impl Unpin for ContentValidationError
impl UnsafeUnpin for ContentValidationError
impl UnwindSafe for ContentValidationError
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