#[non_exhaustive]pub struct LimitError {
pub kind: LimitKind,
pub msg: String,
}Expand description
A file refused for being over a limit or unsafe.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: LimitKindWhich limit.
msg: StringThe message, safe to show the person who uploaded the file.
Implementations§
Source§impl LimitError
impl LimitError
Trait Implementations§
Source§impl Clone for LimitError
impl Clone for LimitError
Source§impl Debug for LimitError
impl Debug for LimitError
Source§impl Display for LimitError
impl Display for LimitError
impl Eq for LimitError
Source§impl From<LimitError> for Error
impl From<LimitError> for Error
Source§fn from(e: LimitError) -> Error
fn from(e: LimitError) -> Error
Converts to this type from the input type.
Source§impl PartialEq for LimitError
impl PartialEq for LimitError
impl StructuralPartialEq for LimitError
Auto Trait Implementations§
impl Forget for LimitError
impl Freeze for LimitError
impl Move for LimitError
impl RefUnwindSafe for LimitError
impl Send for LimitError
impl Sync for LimitError
impl Unpin for LimitError
impl UnsafeUnpin for LimitError
impl UnwindSafe for LimitError
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