Struct teloxide_core::payloads::GetChatAdministrators
source · [−]pub struct GetChatAdministrators {
pub chat_id: Recipient,
}Expand description
Use this method to get a list of administrators in a chat. On success, returns an Array of ChatMember objects that contains information about all chat administrators except other bots. If the chat is a group or a supergroup and no administrators were appointed, only the creator will be returned.
Fields
chat_id: RecipientUnique identifier for the target chat or username of the target channel (in the format @channelusername)
Implementations
Trait Implementations
sourceimpl Clone for GetChatAdministrators
impl Clone for GetChatAdministrators
sourcefn clone(&self) -> GetChatAdministratorsⓘNotable traits for GetChatAdministratorsimpl Payload for GetChatAdministrators type Output = Vec<ChatMember>;
fn clone(&self) -> GetChatAdministratorsⓘNotable traits for GetChatAdministratorsimpl Payload for GetChatAdministrators type Output = Vec<ChatMember>;
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 Debug for GetChatAdministrators
impl Debug for GetChatAdministrators
sourceimpl Hash for GetChatAdministrators
impl Hash for GetChatAdministrators
sourceimpl PartialEq<GetChatAdministrators> for GetChatAdministrators
impl PartialEq<GetChatAdministrators> for GetChatAdministrators
sourcefn eq(&self, other: &GetChatAdministrators) -> bool
fn eq(&self, other: &GetChatAdministrators) -> bool
sourceimpl Payload for GetChatAdministrators
impl Payload for GetChatAdministrators
type Output = Vec<ChatMember, Global>
type Output = Vec<ChatMember, Global>
The return type of a Telegram method. Read more
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 moresourceimpl Serialize for GetChatAdministrators
impl Serialize for GetChatAdministrators
impl Eq for GetChatAdministrators
impl StructuralEq for GetChatAdministrators
impl StructuralPartialEq for GetChatAdministrators
Auto Trait Implementations
impl RefUnwindSafe for GetChatAdministrators
impl Send for GetChatAdministrators
impl Sync for GetChatAdministrators
impl Unpin for GetChatAdministrators
impl UnwindSafe for GetChatAdministrators
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.