pub struct SndFileCompleteXftp {
pub user: User,
pub chat_item: AChatItem,
pub file_transfer_meta: FileTransferMeta,
pub undocumented: Value,
}Expand description
§File events
Bots that send or receive files may process these events to track delivery status and to process completion.
Bots that need to receive or moderate files (e.g., based on name, size or extension), can use relevant commands (e.g., ReceiveFile or ApiDeleteMemberChatItem) when processing NewChatItems event.
Bots that need to send files should use ApiSendMessages command.
File upload is competed.
Fields§
§user: User§chat_item: AChatItem§file_transfer_meta: FileTransferMeta§undocumented: ValueImplementations§
Source§impl SndFileCompleteXftp
impl SndFileCompleteXftp
Sourcepub fn builder() -> SndFileCompleteXftpBuilder
pub fn builder() -> SndFileCompleteXftpBuilder
Create an instance of SndFileCompleteXftp using the builder syntax
Trait Implementations§
Source§impl Clone for SndFileCompleteXftp
impl Clone for SndFileCompleteXftp
Source§fn clone(&self) -> SndFileCompleteXftp
fn clone(&self) -> SndFileCompleteXftp
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 SndFileCompleteXftp
impl Debug for SndFileCompleteXftp
Source§impl<'de> Deserialize<'de> for SndFileCompleteXftp
impl<'de> Deserialize<'de> for SndFileCompleteXftp
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SndFileCompleteXftp, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SndFileCompleteXftp, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl EventData for SndFileCompleteXftp
impl EventData for SndFileCompleteXftp
const KIND: EventKind = EventKind::SndFileCompleteXftp
fn from_event(ev: Event) -> Result<Arc<SndFileCompleteXftp>, Event>
fn into_event(self: Arc<SndFileCompleteXftp>) -> Event
Source§impl PartialEq for SndFileCompleteXftp
impl PartialEq for SndFileCompleteXftp
Source§fn eq(&self, other: &SndFileCompleteXftp) -> bool
fn eq(&self, other: &SndFileCompleteXftp) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SndFileCompleteXftp
impl Serialize for SndFileCompleteXftp
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 SndFileCompleteXftp
Auto Trait Implementations§
impl Freeze for SndFileCompleteXftp
impl RefUnwindSafe for SndFileCompleteXftp
impl Send for SndFileCompleteXftp
impl Sync for SndFileCompleteXftp
impl Unpin for SndFileCompleteXftp
impl UnsafeUnpin for SndFileCompleteXftp
impl UnwindSafe for SndFileCompleteXftp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more