Struct sqlx_adapter::SqlxAdapter
source · pub struct SqlxAdapter { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Adapter for SqlxAdapter
impl Adapter for SqlxAdapter
fn load_policy<'life0, 'life1, 'async_trait>(
&'life0 mut self,
m: &'life1 mut dyn Model
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_filtered_policy<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
m: &'life1 mut dyn Model,
f: Filter<'a>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save_policy<'life0, 'life1, 'async_trait>(
&'life0 mut self,
m: &'life1 mut dyn Model
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn add_policy<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
_sec: &'life1 str,
ptype: &'life2 str,
rule: Vec<String>
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn add_policies<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
_sec: &'life1 str,
ptype: &'life2 str,
rules: Vec<Vec<String>>
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn remove_policy<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
_sec: &'life1 str,
pt: &'life2 str,
rule: Vec<String>
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn remove_policies<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
_sec: &'life1 str,
pt: &'life2 str,
rules: Vec<Vec<String>>
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn remove_filtered_policy<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
_sec: &'life1 str,
pt: &'life2 str,
field_index: usize,
field_values: Vec<String>
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn clear_policy<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn is_filtered(&self) -> bool
source§impl Clone for SqlxAdapter
impl Clone for SqlxAdapter
source§fn clone(&self) -> SqlxAdapter
fn clone(&self) -> SqlxAdapter
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for SqlxAdapter
impl Send for SqlxAdapter
impl Sync for SqlxAdapter
impl Unpin for SqlxAdapter
impl !UnwindSafe for SqlxAdapter
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