pub struct Attachment {
pub kind: String,
pub path: String,
pub name: String,
pub mime: String,
pub size: u64,
pub transcript: Option<String>,
}Expand description
A file a client attaches to its turn, already saved on the daemon’s host, such as a photo or document a chat user sent.
Fields§
§kind: Stringimage, audio, video, file, or sticker.
path: StringAbsolute path of a regular file on the daemon’s host.
name: StringThe name the sender gave it; empty when the platform has none.
mime: StringMIME type, such as image/png; empty when unknown.
size: u64Size in bytes.
transcript: Option<String>What a voice message said, when the platform transcribed it.
Trait Implementations§
Source§impl Clone for Attachment
impl Clone for Attachment
Source§impl Debug for Attachment
impl Debug for Attachment
Source§impl<'de> Deserialize<'de> for Attachment
impl<'de> Deserialize<'de> for Attachment
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 Attachment
Source§impl PartialEq for Attachment
impl PartialEq for Attachment
Source§impl Serialize for Attachment
impl Serialize for Attachment
impl StructuralPartialEq for Attachment
Auto Trait Implementations§
impl Freeze for Attachment
impl RefUnwindSafe for Attachment
impl Send for Attachment
impl Sync for Attachment
impl Unpin for Attachment
impl UnsafeUnpin for Attachment
impl UnwindSafe for Attachment
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