pub struct WireFile {
pub kind: String,
pub path: String,
pub mime: Option<String>,
pub file_id: Option<String>,
}Expand description
A file attached to an inbound message.
The CLI platform has no remote file store: path is a local file the
bot may read directly.
Fields§
§kind: StringMedia kind: photo, video, audio, voice, animation,
document, or sticker.
path: StringLocal filesystem path.
mime: Option<String>MIME type; inferred from path when absent.
file_id: Option<String>Stable identifier for resend-by-id flows; defaults to path.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WireFile
impl<'de> Deserialize<'de> for WireFile
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 WireFile
impl StructuralPartialEq for WireFile
Auto Trait Implementations§
impl Freeze for WireFile
impl RefUnwindSafe for WireFile
impl Send for WireFile
impl Sync for WireFile
impl Unpin for WireFile
impl UnsafeUnpin for WireFile
impl UnwindSafe for WireFile
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