casbin

Trait 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,