#[non_exhaustive]pub enum UploadKind {
Png,
Jpeg,
Pdf,
Mp4,
WebM,
PlainText,
}Expand description
Bounded content families recognized by the built-in signature gate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Png
Portable Network Graphics image recognized by its fixed signature.
Jpeg
JPEG image recognized by its start-of-image signature.
Portable Document Format object recognized by its header.
Mp4
ISO base media object with an ftyp box in the expected position.
WebM
WebM/Matroska object recognized by its EBML header.
PlainText
UTF-8 plain text that neither starts with markup (after whitespace,
byte-order marks and zero-width characters) nor contains javascript:.
Implementations§
Source§impl UploadKind
impl UploadKind
Trait Implementations§
Source§impl Clone for UploadKind
impl Clone for UploadKind
impl Copy for UploadKind
Source§impl Debug for UploadKind
impl Debug for UploadKind
impl Eq for UploadKind
Source§impl Ord for UploadKind
impl Ord for UploadKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for UploadKind
impl PartialEq for UploadKind
Source§impl PartialOrd for UploadKind
impl PartialOrd for UploadKind
impl StructuralPartialEq for UploadKind
Auto Trait Implementations§
impl Freeze for UploadKind
impl RefUnwindSafe for UploadKind
impl Send for UploadKind
impl Sync for UploadKind
impl Unpin for UploadKind
impl UnsafeUnpin for UploadKind
impl UnwindSafe for UploadKind
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