[−][src]Struct meshuganah::GenericRepository
Fields
database: Database
Trait Implementations
impl<T: Model> RepositoryTrait<T> for GenericRepository<T>
[src]
fn new<'async_trait>(
database: Database
) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>> where
Self: 'async_trait,
[src]
database: Database
) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>> where
Self: 'async_trait,
fn get_collection(&self) -> Collection
[src]
fn add_item<'life0, 'async_trait>(
&'life0 self,
filter: Option<Document>,
item: T
) -> Pin<Box<dyn Future<Output = Result<Option<T>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
filter: Option<Document>,
item: T
) -> Pin<Box<dyn Future<Output = Result<Option<T>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn add_many<'life0, 'async_trait, I: IntoIterator<Item = T> + Send, O: Into<Option<InsertManyOptions>> + Send>(
&'life0 self,
collection: I,
options: O
) -> Pin<Box<dyn Future<Output = Result<InsertManyResult>> + Send + 'async_trait>> where
I: 'async_trait,
O: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
collection: I,
options: O
) -> Pin<Box<dyn Future<Output = Result<InsertManyResult>> + Send + 'async_trait>> where
I: 'async_trait,
O: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn find<'life0, 'async_trait, F: Into<Option<Document>> + Send, O: Into<Option<FindOptions>> + Send>(
&'life0 self,
filter: F,
options: O
) -> Pin<Box<dyn Future<Output = Result<TypeCursor<T>>> + Send + 'async_trait>> where
F: 'async_trait,
O: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
filter: F,
options: O
) -> Pin<Box<dyn Future<Output = Result<TypeCursor<T>>> + Send + 'async_trait>> where
F: 'async_trait,
O: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn find_one<'life0, 'async_trait, F: Into<Option<Document>> + Send, O: Into<Option<FindOneOptions>> + Send>(
&'life0 self,
filter: F,
options: O
) -> Pin<Box<dyn Future<Output = Result<Option<T>>> + Send + 'async_trait>> where
F: 'async_trait,
O: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
filter: F,
options: O
) -> Pin<Box<dyn Future<Output = Result<Option<T>>> + Send + 'async_trait>> where
F: 'async_trait,
O: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn delete_item<'life0, 'async_trait, O: Into<Option<FindOneAndDeleteOptions>> + Send>(
&'life0 self,
filter: Document,
options: O
) -> Pin<Box<dyn Future<Output = Result<Option<T>>> + Send + 'async_trait>> where
O: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
filter: Document,
options: O
) -> Pin<Box<dyn Future<Output = Result<Option<T>>> + Send + 'async_trait>> where
O: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn delete_items<'life0, 'async_trait, O: Into<Option<DeleteOptions>> + Send>(
&'life0 self,
query: Document,
options: O
) -> Pin<Box<dyn Future<Output = Result<DeleteResult>> + Send + 'async_trait>> where
O: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
query: Document,
options: O
) -> Pin<Box<dyn Future<Output = Result<DeleteResult>> + Send + 'async_trait>> where
O: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn write_concern() -> Option<WriteConcern>
[src]
fn get_document(model: &T) -> Result<Document>
[src]
fn get_instance_from_document(document: Document) -> Result<T>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for GenericRepository<T>
impl<T> Send for GenericRepository<T>
impl<T> Sync for GenericRepository<T>
impl<T> Unpin for GenericRepository<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for GenericRepository<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,