pub enum AttachmentData {
Base64 {
value: Base64AttachmentData,
},
Json {
value: JsonAttachmentData,
},
Links {
value: LinksAttachmentData,
},
}Expand description
Represents attachment data in Base64, embedded Json or Links form.
Variants§
Base64
Fields
§
value: Base64AttachmentDataJson
Fields
§
value: JsonAttachmentDataLinks
Fields
§
value: LinksAttachmentDataTrait Implementations§
Source§impl Clone for AttachmentData
impl Clone for AttachmentData
Source§fn clone(&self) -> AttachmentData
fn clone(&self) -> AttachmentData
Returns a duplicate of the value. Read more
1.0.0 · 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 AttachmentData
impl Debug for AttachmentData
Source§impl<'de> Deserialize<'de> for AttachmentData
impl<'de> Deserialize<'de> for AttachmentData
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 PartialEq for AttachmentData
impl PartialEq for AttachmentData
Source§impl Serialize for AttachmentData
impl Serialize for AttachmentData
impl Eq for AttachmentData
impl StructuralPartialEq for AttachmentData
Auto Trait Implementations§
impl Freeze for AttachmentData
impl RefUnwindSafe for AttachmentData
impl Send for AttachmentData
impl Sync for AttachmentData
impl Unpin for AttachmentData
impl UnwindSafe for AttachmentData
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