Struct telegram_bot_api::types::ChatMemberOwner
source · [−]pub struct ChatMemberOwner {
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
user: User
Information about the user
is_anonymous: bool
True, if the user’s presence in the chat is hidden
custom_title: Option<String>
Optional. Custom title for this user
Implementations
Trait Implementations
sourceimpl Clone for ChatMemberOwner
impl Clone for ChatMemberOwner
sourcefn clone(&self) -> ChatMemberOwner
fn clone(&self) -> ChatMemberOwner
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ChatMemberOwner
impl Debug for ChatMemberOwner
sourceimpl<'de> Deserialize<'de> for ChatMemberOwner
impl<'de> Deserialize<'de> for ChatMemberOwner
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 Serialize for ChatMemberOwner
impl Serialize for ChatMemberOwner
Auto Trait Implementations
impl RefUnwindSafe for ChatMemberOwner
impl Send for ChatMemberOwner
impl Sync for ChatMemberOwner
impl Unpin for ChatMemberOwner
impl UnwindSafe for ChatMemberOwner
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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