pub struct ChatMemberOwner {
pub status: String,
pub user: User,
pub is_anonymous: bool,
pub custom_title: Option<String>,
}Expand description
Represents a chat member that owns the chat and has all administrator privileges.
Fields§
§status: StringThe member’s status in the chat, always “creator”
user: UserInformation about the user
is_anonymous: boolTrue, if the user’s presence in the chat is hidden
custom_title: Option<String>Custom title for this user
Trait Implementations§
Source§impl Clone for ChatMemberOwner
impl Clone for ChatMemberOwner
Source§fn clone(&self) -> ChatMemberOwner
fn clone(&self) -> ChatMemberOwner
Returns a duplicate of the value. Read more
1.0.0 · 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 ChatMemberOwner
impl Debug for ChatMemberOwner
Source§impl<'de> Deserialize<'de> for ChatMemberOwner
impl<'de> Deserialize<'de> for ChatMemberOwner
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 From<ChatMemberOwner> for ChatMember
impl From<ChatMemberOwner> for ChatMember
Source§fn from(o: ChatMemberOwner) -> Self
fn from(o: ChatMemberOwner) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ChatMemberOwner
impl RefUnwindSafe for ChatMemberOwner
impl Send for ChatMemberOwner
impl Sync for ChatMemberOwner
impl Unpin for ChatMemberOwner
impl UnwindSafe for ChatMemberOwner
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