pub struct AttachmentCreateMeta {
pub media_type: MediaType,
pub width: Option<u32>,
pub height: Option<u32>,
pub label: Option<String>,
}Fields§
§media_type: MediaType§width: Option<u32>§height: Option<u32>§label: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for AttachmentCreateMeta
impl Clone for AttachmentCreateMeta
Source§fn clone(&self) -> AttachmentCreateMeta
fn clone(&self) -> AttachmentCreateMeta
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 AttachmentCreateMeta
impl Debug for AttachmentCreateMeta
Source§impl<'de> Deserialize<'de> for AttachmentCreateMeta
impl<'de> Deserialize<'de> for AttachmentCreateMeta
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AttachmentCreateMeta, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AttachmentCreateMeta, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AttachmentCreateMeta
Source§impl PartialEq for AttachmentCreateMeta
impl PartialEq for AttachmentCreateMeta
Source§fn eq(&self, other: &AttachmentCreateMeta) -> bool
fn eq(&self, other: &AttachmentCreateMeta) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AttachmentCreateMeta
impl Serialize for AttachmentCreateMeta
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AttachmentCreateMeta
Auto Trait Implementations§
impl Freeze for AttachmentCreateMeta
impl RefUnwindSafe for AttachmentCreateMeta
impl Send for AttachmentCreateMeta
impl Sync for AttachmentCreateMeta
impl Unpin for AttachmentCreateMeta
impl UnsafeUnpin for AttachmentCreateMeta
impl UnwindSafe for AttachmentCreateMeta
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