Struct frankenstein::objects::ChatMemberUpdated
source · [−]pub struct ChatMemberUpdated {
pub chat: Chat,
pub from: User,
pub date: u64,
pub old_chat_member: ChatMember,
pub new_chat_member: ChatMember,
pub invite_link: Option<ChatInviteLink>,
}
Fields
chat: Chat
from: User
date: u64
old_chat_member: ChatMember
new_chat_member: ChatMember
invite_link: Option<ChatInviteLink>
Implementations
sourceimpl ChatMemberUpdated
impl ChatMemberUpdated
sourcepub fn builder() -> ChatMemberUpdatedBuilder<((), (), (), (), (), ())>
pub fn builder() -> ChatMemberUpdatedBuilder<((), (), (), (), (), ())>
Create a builder for building ChatMemberUpdated
.
On the builder, call .chat(...)
, .from(...)
, .date(...)
, .old_chat_member(...)
, .new_chat_member(...)
, .invite_link(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of ChatMemberUpdated
.
Trait Implementations
sourceimpl Clone for ChatMemberUpdated
impl Clone for ChatMemberUpdated
sourcefn clone(&self) -> ChatMemberUpdated
fn clone(&self) -> ChatMemberUpdated
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ChatMemberUpdated
impl Debug for ChatMemberUpdated
sourceimpl<'de> Deserialize<'de> for ChatMemberUpdated
impl<'de> Deserialize<'de> for ChatMemberUpdated
sourcefn 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
sourceimpl PartialEq<ChatMemberUpdated> for ChatMemberUpdated
impl PartialEq<ChatMemberUpdated> for ChatMemberUpdated
sourcefn eq(&self, other: &ChatMemberUpdated) -> bool
fn eq(&self, other: &ChatMemberUpdated) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ChatMemberUpdated) -> bool
fn ne(&self, other: &ChatMemberUpdated) -> bool
This method tests for !=
.
sourceimpl Serialize for ChatMemberUpdated
impl Serialize for ChatMemberUpdated
impl StructuralPartialEq for ChatMemberUpdated
Auto Trait Implementations
impl RefUnwindSafe for ChatMemberUpdated
impl Send for ChatMemberUpdated
impl Sync for ChatMemberUpdated
impl Unpin for ChatMemberUpdated
impl UnwindSafe for ChatMemberUpdated
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more