Trait casbin::TryIntoModel

source ·
pub trait TryIntoModel: Send + Sync {
    // Required method
    fn try_into_model<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn Model>>> + Send + 'async_trait>>
       where Self: 'async_trait;
}

Required Methods§

source

fn try_into_model<'async_trait>( self ) -> Pin<Box<dyn Future<Output = Result<Box<dyn Model>>> + Send + 'async_trait>>
where Self: 'async_trait,

Implementations on Foreign Types§

source§

impl TryIntoModel for &'static str

source§

fn try_into_model<'async_trait>( self ) -> Pin<Box<dyn Future<Output = Result<Box<dyn Model>>> + Send + 'async_trait>>
where Self: 'async_trait,

source§

impl<T> TryIntoModel for Option<T>
where T: TryIntoModel,

source§

fn try_into_model<'async_trait>( self ) -> Pin<Box<dyn Future<Output = Result<Box<dyn Model>>> + Send + 'async_trait>>
where Self: 'async_trait,

Implementors§

source§

impl<T> TryIntoModel for T
where T: Model + 'static,