pub struct GetMyDefaultAdministratorRights { /* private fields */ }Expand description
Builder for the getMyDefaultAdministratorRights method.
Implementations§
Source§impl GetMyDefaultAdministratorRights
impl GetMyDefaultAdministratorRights
Sourcepub fn for_channels(self, v: bool) -> Self
pub fn for_channels(self, v: bool) -> Self
Pass true to get default administrator rights for channels;
otherwise returns defaults for groups and supergroups.
Trait Implementations§
Source§impl IntoFuture for GetMyDefaultAdministratorRights
impl IntoFuture for GetMyDefaultAdministratorRights
Source§type Output = Result<ChatAdministratorRights, Error>
type Output = Result<ChatAdministratorRights, Error>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <GetMyDefaultAdministratorRights as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <GetMyDefaultAdministratorRights 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 GetMyDefaultAdministratorRights
impl !RefUnwindSafe for GetMyDefaultAdministratorRights
impl Send for GetMyDefaultAdministratorRights
impl Sync for GetMyDefaultAdministratorRights
impl Unpin for GetMyDefaultAdministratorRights
impl UnsafeUnpin 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