pub enum AttachmentError {
InvalidLimits,
EmptyContentTypeAllowlist,
EmptyAttachment,
InvalidFileName,
InvalidContentType,
UnsupportedContentType {
kind: AttachmentKind,
content_type: String,
},
AttachmentTooLarge {
kind: AttachmentKind,
actual: u64,
maximum: u64,
},
TooManyAttachments {
actual: usize,
maximum: usize,
},
AggregateSizeOverflow,
AggregateTooLarge {
actual: u64,
maximum: u64,
},
InvalidObjectScope,
ObjectStore(ObjectStoreError),
}Variants§
InvalidLimits
EmptyContentTypeAllowlist
EmptyAttachment
InvalidFileName
InvalidContentType
UnsupportedContentType
AttachmentTooLarge
TooManyAttachments
AggregateSizeOverflow
AggregateTooLarge
InvalidObjectScope
ObjectStore(ObjectStoreError)
Trait Implementations§
Source§impl Debug for AttachmentError
impl Debug for AttachmentError
Source§impl Display for AttachmentError
impl Display for AttachmentError
Source§impl Error for AttachmentError
impl Error for AttachmentError
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<ObjectStoreError> for AttachmentError
impl From<ObjectStoreError> for AttachmentError
Source§fn from(source: ObjectStoreError) -> Self
fn from(source: ObjectStoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AttachmentError
impl RefUnwindSafe for AttachmentError
impl Send for AttachmentError
impl Sync for AttachmentError
impl Unpin for AttachmentError
impl UnsafeUnpin for AttachmentError
impl UnwindSafe for AttachmentError
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