pub struct SetBotDefaultAdministratorRights { /* private fields */ }
Expand description
Changes default administrator rights requested by a bot when it’s added as an administrator to groups or channels.
These rights will be suggested to users, but they are free to modify the list before adding the bot.
Implementations§
Source§impl SetBotDefaultAdministratorRights
impl SetBotDefaultAdministratorRights
Sourcepub fn with_for_channels(self, value: bool) -> Self
pub fn with_for_channels(self, value: bool) -> Self
Sets a new value of a for_channels
flag.
§Arguments
value
- For channels -true
; for groups and supergroups -false
.
Sourcepub fn with_rights(self, value: ChatAdministratorRights) -> Self
pub fn with_rights(self, value: ChatAdministratorRights) -> Self
Sets new default administrator rights
§Arguments
value
- Default administrator rights; if not specified, the default administrator rights will be cleared.
Trait Implementations§
Source§impl Clone for SetBotDefaultAdministratorRights
impl Clone for SetBotDefaultAdministratorRights
Source§fn clone(&self) -> SetBotDefaultAdministratorRights
fn clone(&self) -> SetBotDefaultAdministratorRights
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 Default for SetBotDefaultAdministratorRights
impl Default for SetBotDefaultAdministratorRights
Source§fn default() -> SetBotDefaultAdministratorRights
fn default() -> SetBotDefaultAdministratorRights
Returns the “default value” for a type. Read more
impl Copy for SetBotDefaultAdministratorRights
Auto Trait Implementations§
impl Freeze for SetBotDefaultAdministratorRights
impl RefUnwindSafe for SetBotDefaultAdministratorRights
impl Send for SetBotDefaultAdministratorRights
impl Sync for SetBotDefaultAdministratorRights
impl Unpin for SetBotDefaultAdministratorRights
impl UnwindSafe for SetBotDefaultAdministratorRights
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