Skip to main content

RoleExt

Trait RoleExt 

Source
pub trait RoleExt: Identifiable {
    // Required methods
    fn edit<'life0, 'async_trait>(
        &'life0 self,
        http: impl 'async_trait + AsRef<HttpClient> + Send,
        server_id: String,
    ) -> Pin<Box<dyn Future<Output = EditRoleBuilder> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete<'life0, 'life1, 'async_trait>(
        &'life0 self,
        http: impl 'async_trait + AsRef<HttpClient> + Send,
        server_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn set_permissions<'life0, 'life1, 'async_trait>(
        &'life0 self,
        http: impl 'async_trait + AsRef<HttpClient> + Send,
        server_id: &'life1 str,
        allow: u64,
        deny: u64,
    ) -> Pin<Box<dyn Future<Output = Result<Role>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn edit<'life0, 'async_trait>( &'life0 self, http: impl 'async_trait + AsRef<HttpClient> + Send, server_id: String, ) -> Pin<Box<dyn Future<Output = EditRoleBuilder> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn delete<'life0, 'life1, 'async_trait>( &'life0 self, http: impl 'async_trait + AsRef<HttpClient> + Send, server_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn set_permissions<'life0, 'life1, 'async_trait>( &'life0 self, http: impl 'async_trait + AsRef<HttpClient> + Send, server_id: &'life1 str, allow: u64, deny: u64, ) -> Pin<Box<dyn Future<Output = Result<Role>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§