pub struct SeaOrmStorage { /* private fields */ }Implementations§
Source§impl SeaOrmStorage
impl SeaOrmStorage
pub fn new(database: DatabaseConnection) -> Self
Trait Implementations§
Source§impl Clone for SeaOrmStorage
impl Clone for SeaOrmStorage
Source§fn clone(&self) -> SeaOrmStorage
fn clone(&self) -> SeaOrmStorage
Returns a duplicate 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 moreSource§impl Debug for SeaOrmStorage
impl Debug for SeaOrmStorage
Source§impl Storage<User> for SeaOrmStorage
impl Storage<User> for SeaOrmStorage
fn id(&self) -> String
fn user_by_id<'life0, 'life1, 'async_trait>(
&'life0 self,
user_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<User>, StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn user_by_email<'life0, 'life1, 'async_trait>(
&'life0 self,
email: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<User>, StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_user<'life0, 'async_trait>(
&'life0 self,
user: CreateUser,
email_address: CreateEmailAddress,
) -> Pin<Box<dyn Future<Output = Result<User, StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_user<'life0, 'async_trait>(
&'life0 self,
user: UpdateUser,
) -> Pin<Box<dyn Future<Output = Result<User, StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_user<'life0, 'life1, 'async_trait>(
&'life0 self,
user_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), StorageError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for SeaOrmStorage
impl RefUnwindSafe for SeaOrmStorage
impl Send for SeaOrmStorage
impl Sync for SeaOrmStorage
impl Unpin for SeaOrmStorage
impl UnsafeUnpin for SeaOrmStorage
impl UnwindSafe for SeaOrmStorage
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