pub struct SetMyDefaultAdministratorRights { /* private fields */ }Expand description
Builder for the setMyDefaultAdministratorRights method.
Sets the default administrator rights suggested to users when the bot is
added as an administrator. Pass None rights to clear the defaults.
Implementations§
Source§impl SetMyDefaultAdministratorRights
impl SetMyDefaultAdministratorRights
Sourcepub fn rights(self, r: ChatAdministratorRights) -> Self
pub fn rights(self, r: ChatAdministratorRights) -> Self
Sets the new default administrator rights. Omit to clear the current defaults.
Sourcepub fn for_channels(self, v: bool) -> Self
pub fn for_channels(self, v: bool) -> Self
Pass true to change defaults for channels; otherwise changes group/supergroup defaults.
Trait Implementations§
Source§impl IntoFuture for SetMyDefaultAdministratorRights
impl IntoFuture for SetMyDefaultAdministratorRights
Source§type IntoFuture = Pin<Box<dyn Future<Output = <SetMyDefaultAdministratorRights as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <SetMyDefaultAdministratorRights as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. 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 UnsafeUnpin 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