Struct tgbot::types::ChatMemberCreator
source · pub struct ChatMemberCreator {
pub is_anonymous: bool,
pub user: User,
pub custom_title: Option<String>,
}
Expand description
Represents a chat member that owns the chat and has all administrator privileges.
Fields§
§is_anonymous: bool
Indicates whether the creator’s presence in the chat is hidden.
user: User
Information about the user.
custom_title: Option<String>
Custom title for the creator.
Implementations§
source§impl ChatMemberCreator
impl ChatMemberCreator
sourcepub fn with_custom_title<T>(self, value: T) -> Self
pub fn with_custom_title<T>(self, value: T) -> Self
sourcepub fn with_is_anonymous(self, value: bool) -> Self
pub fn with_is_anonymous(self, value: bool) -> Self
Sets a new value of an is_anonymous
flag.
§Arguments
value
- Indicates whether the creator’s presence in the chat is hidden.
Trait Implementations§
source§impl Clone for ChatMemberCreator
impl Clone for ChatMemberCreator
source§fn clone(&self) -> ChatMemberCreator
fn clone(&self) -> ChatMemberCreator
Returns a copy 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 ChatMemberCreator
impl Debug for ChatMemberCreator
source§impl<'de> Deserialize<'de> for ChatMemberCreator
impl<'de> Deserialize<'de> for ChatMemberCreator
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 PartialEq for ChatMemberCreator
impl PartialEq for ChatMemberCreator
source§fn eq(&self, other: &ChatMemberCreator) -> bool
fn eq(&self, other: &ChatMemberCreator) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ChatMemberCreator
impl PartialOrd for ChatMemberCreator
source§fn partial_cmp(&self, other: &ChatMemberCreator) -> Option<Ordering>
fn partial_cmp(&self, other: &ChatMemberCreator) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ChatMemberCreator
impl Serialize for ChatMemberCreator
impl StructuralPartialEq for ChatMemberCreator
Auto Trait Implementations§
impl Freeze for ChatMemberCreator
impl RefUnwindSafe for ChatMemberCreator
impl Send for ChatMemberCreator
impl Sync for ChatMemberCreator
impl Unpin for ChatMemberCreator
impl UnwindSafe for ChatMemberCreator
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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