pub struct FileComponent {
pub id: Option<u32>,
pub file: AttachmentId,
pub spoiler: bool,
}Expand description
Type 13.
Fields§
§id: Option<u32>Unique in the message.
file: AttachmentIdAn attachment of the same message.
spoiler: boolHidden until clicked.
Trait Implementations§
Source§impl Clone for FileComponent
impl Clone for FileComponent
Source§fn clone(&self) -> FileComponent
fn clone(&self) -> FileComponent
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 FileComponent
impl Debug for FileComponent
Source§impl<'de> Deserialize<'de> for FileComponent
impl<'de> Deserialize<'de> for FileComponent
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 FileComponent
Source§impl PartialEq for FileComponent
impl PartialEq for FileComponent
Source§impl Serialize for FileComponent
impl Serialize for FileComponent
impl StructuralPartialEq for FileComponent
Auto Trait Implementations§
impl Freeze for FileComponent
impl RefUnwindSafe for FileComponent
impl Send for FileComponent
impl Sync for FileComponent
impl Unpin for FileComponent
impl UnsafeUnpin for FileComponent
impl UnwindSafe for FileComponent
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