pub enum ContentLengthError {
EmptyObject,
}Expand description
Validation error for document size constraints.
Variants§
EmptyObject
Signals that object was blank or missing during document validation.
Trait Implementations§
Source§impl Clone for ContentLengthError
impl Clone for ContentLengthError
Source§fn clone(&self) -> ContentLengthError
fn clone(&self) -> ContentLengthError
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 ContentLengthError
impl Debug for ContentLengthError
Source§impl Display for ContentLengthError
impl Display for ContentLengthError
Source§impl Error for ContentLengthError
impl Error for ContentLengthError
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 ContentLengthError
impl PartialEq for ContentLengthError
impl Copy for ContentLengthError
impl Eq for ContentLengthError
impl StructuralPartialEq for ContentLengthError
Auto Trait Implementations§
impl Freeze for ContentLengthError
impl RefUnwindSafe for ContentLengthError
impl Send for ContentLengthError
impl Sync for ContentLengthError
impl Unpin for ContentLengthError
impl UnsafeUnpin for ContentLengthError
impl UnwindSafe for ContentLengthError
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