pub struct SetMyDefaultAdministratorRights {
pub rights: Option<ChatAdministratorRights>,
pub for_channels: Option<bool>,
}
Expand description
Use this method to change the default administrator rights requested by the bot when it’s added as an administrator to groups or channels. These rights will be suggested to users, but they are are free to modify the list before adding the bot. Returns True on success.
Fields§
§rights: Option<ChatAdministratorRights>
A JSON-serialized object describing new default administrator rights. If not specified, the default administrator rights will be cleared.
for_channels: Option<bool>
Pass True to change the default administrator rights of the bot in channels. Otherwise, the default administrator rights of the bot for groups and supergroups will be changed.
Implementations§
Trait Implementations§
Source§impl Clone for SetMyDefaultAdministratorRights
impl Clone for SetMyDefaultAdministratorRights
Source§fn clone(&self) -> SetMyDefaultAdministratorRights
fn clone(&self) -> SetMyDefaultAdministratorRights
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 SetMyDefaultAdministratorRights
impl<'de> Deserialize<'de> for SetMyDefaultAdministratorRights
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 SetMyDefaultAdministratorRights
impl RefUnwindSafe for SetMyDefaultAdministratorRights
impl Send for SetMyDefaultAdministratorRights
impl Sync for SetMyDefaultAdministratorRights
impl Unpin for SetMyDefaultAdministratorRights
impl UnwindSafe for SetMyDefaultAdministratorRights
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