pub struct RcvFileComplete {
pub user: User,
pub chat_item: AChatItem,
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 reception is competed.
Fields§
§user: User§chat_item: AChatItem§undocumented: ValueImplementations§
Source§impl RcvFileComplete
impl RcvFileComplete
Sourcepub fn builder() -> RcvFileCompleteBuilder
pub fn builder() -> RcvFileCompleteBuilder
Create an instance of RcvFileComplete using the builder syntax
Trait Implementations§
Source§impl Clone for RcvFileComplete
impl Clone for RcvFileComplete
Source§fn clone(&self) -> RcvFileComplete
fn clone(&self) -> RcvFileComplete
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 RcvFileComplete
impl Debug for RcvFileComplete
Source§impl<'de> Deserialize<'de> for RcvFileComplete
impl<'de> Deserialize<'de> for RcvFileComplete
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RcvFileComplete, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RcvFileComplete, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl EventData for RcvFileComplete
impl EventData for RcvFileComplete
const KIND: EventKind = EventKind::RcvFileComplete
fn from_event(ev: Event) -> Result<Arc<RcvFileComplete>, Event>
fn into_event(self: Arc<RcvFileComplete>) -> Event
Source§impl FileSourceExt for RcvFileComplete
impl FileSourceExt for RcvFileComplete
Source§fn file_source(&self) -> Option<CryptoFile>
fn file_source(&self) -> Option<CryptoFile>
Returns the file source, or
None if no file source is present.Source§impl PartialEq for RcvFileComplete
impl PartialEq for RcvFileComplete
Source§fn eq(&self, other: &RcvFileComplete) -> bool
fn eq(&self, other: &RcvFileComplete) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RcvFileComplete
impl Serialize for RcvFileComplete
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 RcvFileComplete
Auto Trait Implementations§
impl Freeze for RcvFileComplete
impl RefUnwindSafe for RcvFileComplete
impl Send for RcvFileComplete
impl Sync for RcvFileComplete
impl Unpin for RcvFileComplete
impl UnsafeUnpin for RcvFileComplete
impl UnwindSafe for RcvFileComplete
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