pub struct GetMyDefaultAdministratorRights {
pub for_channels: Option<bool>,
}
Expand description
Use this method to get the current default administrator rights of the bot. Returns ChatAdministratorRights on success.
Fields§
§for_channels: Option<bool>
Pass True to get default administrator rights of the bot in channels. Otherwise, default administrator rights of the bot for groups and supergroups will be returned.
Implementations§
Trait Implementations§
Source§impl Clone for GetMyDefaultAdministratorRights
impl Clone for GetMyDefaultAdministratorRights
Source§fn clone(&self) -> GetMyDefaultAdministratorRights
fn clone(&self) -> GetMyDefaultAdministratorRights
Returns a duplicate 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<'de> Deserialize<'de> for GetMyDefaultAdministratorRights
impl<'de> Deserialize<'de> for GetMyDefaultAdministratorRights
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
Auto Trait Implementations§
impl Freeze for GetMyDefaultAdministratorRights
impl RefUnwindSafe for GetMyDefaultAdministratorRights
impl Send for GetMyDefaultAdministratorRights
impl Sync for GetMyDefaultAdministratorRights
impl Unpin for GetMyDefaultAdministratorRights
impl UnwindSafe for GetMyDefaultAdministratorRights
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