pub struct OutboundFile {
pub chat: String,
pub message_id: i64,
pub kind: String,
pub path: Option<String>,
pub data: Option<String>,
pub filename: Option<String>,
pub caption: Option<String>,
pub thread_id: Option<i64>,
}Expand description
A file the bot sent. path stays a local reference — the platform does
not copy bytes — while in-memory payloads travel base64’d in data.
Fields§
§chat: StringChat/channel id.
message_id: i64Assigned message id.
kind: StringMedia kind.
path: Option<String>Local path, when the payload lives on disk.
data: Option<String>Base64 payload, when the bytes were in memory.
filename: Option<String>Suggested filename.
caption: Option<String>Caption.
thread_id: Option<i64>Forum topic.
Trait Implementations§
Source§impl Clone for OutboundFile
impl Clone for OutboundFile
Source§fn clone(&self) -> OutboundFile
fn clone(&self) -> OutboundFile
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 OutboundFile
impl Debug for OutboundFile
Source§impl<'de> Deserialize<'de> for OutboundFile
impl<'de> Deserialize<'de> for OutboundFile
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 OutboundFile
impl PartialEq for OutboundFile
Source§impl Serialize for OutboundFile
impl Serialize for OutboundFile
impl StructuralPartialEq for OutboundFile
Auto Trait Implementations§
impl Freeze for OutboundFile
impl RefUnwindSafe for OutboundFile
impl Send for OutboundFile
impl Sync for OutboundFile
impl Unpin for OutboundFile
impl UnsafeUnpin for OutboundFile
impl UnwindSafe for OutboundFile
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