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
sourceimpl Clone for SetMyDefaultAdministratorRights
impl Clone for SetMyDefaultAdministratorRights
sourcefn clone(&self) -> SetMyDefaultAdministratorRights
fn clone(&self) -> SetMyDefaultAdministratorRights
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'de> Deserialize<'de> for SetMyDefaultAdministratorRights
impl<'de> Deserialize<'de> for SetMyDefaultAdministratorRights
sourcefn 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 RefUnwindSafe for SetMyDefaultAdministratorRights
impl Send for SetMyDefaultAdministratorRights
impl Sync for SetMyDefaultAdministratorRights
impl Unpin for SetMyDefaultAdministratorRights
impl UnwindSafe for SetMyDefaultAdministratorRights
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