pub struct SetChatAdministratorCustomTitle {
pub chat_id: Recipient,
pub user_id: UserId,
pub custom_title: String,
}Expand description
Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns _True_on success.
Fields
chat_id: RecipientUnique identifier for the target chat or username of the target channel (in the format @channelusername)
user_id: UserIdUnique identifier of the target user
custom_title: StringNew custom title for the administrator; 0-16 characters, emoji are not allowed
Implementations
Trait Implementations
sourceimpl Clone for SetChatAdministratorCustomTitle
impl Clone for SetChatAdministratorCustomTitle
sourcefn clone(&self) -> SetChatAdministratorCustomTitleⓘNotable traits for SetChatAdministratorCustomTitleimpl Payload for SetChatAdministratorCustomTitle type Output = True;
fn clone(&self) -> SetChatAdministratorCustomTitleⓘNotable traits for SetChatAdministratorCustomTitleimpl Payload for SetChatAdministratorCustomTitle type Output = True;
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 moresourceimpl PartialEq<SetChatAdministratorCustomTitle> for SetChatAdministratorCustomTitle
impl PartialEq<SetChatAdministratorCustomTitle> for SetChatAdministratorCustomTitle
sourcefn eq(&self, other: &SetChatAdministratorCustomTitle) -> bool
fn eq(&self, other: &SetChatAdministratorCustomTitle) -> bool
sourceimpl Payload for SetChatAdministratorCustomTitle
impl Payload for SetChatAdministratorCustomTitle
sourcefn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
If this payload may take long time to execute (e.g.
GetUpdates with
big timeout), the minimum timeout that should be used. Read moreimpl Eq for SetChatAdministratorCustomTitle
impl StructuralEq for SetChatAdministratorCustomTitle
impl StructuralPartialEq for SetChatAdministratorCustomTitle
Auto Trait Implementations
impl RefUnwindSafe for SetChatAdministratorCustomTitle
impl Send for SetChatAdministratorCustomTitle
impl Sync for SetChatAdministratorCustomTitle
impl Unpin for SetChatAdministratorCustomTitle
impl UnwindSafe for SetChatAdministratorCustomTitle
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
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.