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: Recipient
Unique identifier for the target chat or username of the target channel (in the format @channelusername
)
user_id: UserId
Unique identifier of the target user
custom_title: String
New custom title for the administrator; 0-16 characters, emoji are not allowed
Implementations§
Trait Implementations§
source§impl PartialEq<SetChatAdministratorCustomTitle> for SetChatAdministratorCustomTitle
impl PartialEq<SetChatAdministratorCustomTitle> for SetChatAdministratorCustomTitle
source§fn eq(&self, other: &SetChatAdministratorCustomTitle) -> bool
fn eq(&self, other: &SetChatAdministratorCustomTitle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Payload for SetChatAdministratorCustomTitle
impl Payload for SetChatAdministratorCustomTitle
source§fn 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.impl 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§
source§impl<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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.