Struct redact_data::storage::mongodb::MongoDataStorer [−][src]
pub struct MongoDataStorer { /* fields omitted */ }
Expand description
Stores an instance of a mongodb-backed data storer
Implementations
Trait Implementations
Fetches one instance of a Data
stored at that path.
If the Data
is an array, the first retrieved element is returned. Read more
fn get_collection<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
skip: i64,
page_size: i64
) -> Pin<Box<dyn Future<Output = Result<DataCollection, DataStorerError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
fn get_collection<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
skip: i64,
page_size: i64
) -> Pin<Box<dyn Future<Output = Result<DataCollection, DataStorerError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]Fetches all the instances of Data
stored at that path.
Use this if retrieving an array of Data
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for MongoDataStorer
impl Send for MongoDataStorer
impl Sync for MongoDataStorer
impl Unpin for MongoDataStorer
impl !UnwindSafe for MongoDataStorer
Blanket Implementations
fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
TODO: once 1.33.0 is the minimum supported compiler version, remove Any::type_id_compat and use StdAny::type_id instead. https://github.com/rust-lang/rust/issues/27745 Read more
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V