#[non_exhaustive]pub enum UploadFileType {
Photo,
Video,
Document,
}Expand description
Upload type accepted by the Inline upload endpoint.
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.
Implementations§
Trait Implementations§
Source§impl Clone for UploadFileType
impl Clone for UploadFileType
Source§fn clone(&self) -> UploadFileType
fn clone(&self) -> UploadFileType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UploadFileType
Source§impl Debug for UploadFileType
impl Debug for UploadFileType
Source§impl<'de> Deserialize<'de> for UploadFileType
impl<'de> Deserialize<'de> for UploadFileType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for UploadFileType
impl Display for UploadFileType
impl Eq for UploadFileType
Source§impl FromStr for UploadFileType
impl FromStr for UploadFileType
Source§impl Hash for UploadFileType
impl Hash for UploadFileType
Source§impl PartialEq for UploadFileType
impl PartialEq for UploadFileType
Source§fn eq(&self, other: &UploadFileType) -> bool
fn eq(&self, other: &UploadFileType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UploadFileType
impl Serialize for UploadFileType
impl StructuralPartialEq for UploadFileType
Auto Trait Implementations§
impl Freeze for UploadFileType
impl RefUnwindSafe for UploadFileType
impl Send for UploadFileType
impl Sync for UploadFileType
impl Unpin for UploadFileType
impl UnsafeUnpin for UploadFileType
impl UnwindSafe for UploadFileType
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