pub enum AttachmentInput {
LocalFile(PathBuf),
Bytes {
filename: Option<String>,
mime_type: Option<String>,
bytes: Vec<u8>,
},
}Variants§
Trait Implementations§
Source§impl Clone for AttachmentInput
impl Clone for AttachmentInput
Source§fn clone(&self) -> AttachmentInput
fn clone(&self) -> AttachmentInput
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 moreSource§impl Debug for AttachmentInput
impl Debug for AttachmentInput
Source§impl<'de> Deserialize<'de> for AttachmentInput
impl<'de> Deserialize<'de> for AttachmentInput
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
impl Eq for AttachmentInput
Source§impl PartialEq for AttachmentInput
impl PartialEq for AttachmentInput
Source§fn eq(&self, other: &AttachmentInput) -> bool
fn eq(&self, other: &AttachmentInput) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AttachmentInput
impl Serialize for AttachmentInput
impl StructuralPartialEq for AttachmentInput
Auto Trait Implementations§
impl Freeze for AttachmentInput
impl RefUnwindSafe for AttachmentInput
impl Send for AttachmentInput
impl Sync for AttachmentInput
impl Unpin for AttachmentInput
impl UnsafeUnpin for AttachmentInput
impl UnwindSafe for AttachmentInput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.