Enum redact_crypto::storage::IndexedTypeStorer [−][src]
pub enum IndexedTypeStorer {
Redact(RedactStorer),
Mongo(MongoStorer),
Mock(MockIndexedStorer),
}Variants
Redact(RedactStorer)Tuple Fields of Redact
0: RedactStorerMongo(MongoStorer)Tuple Fields of Mongo
0: MongoStorerMock(MockIndexedStorer)Tuple Fields of Mock
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
fn get_indexed<'life0, 'life1, 'life2, 'async_trait, T: StorableType>(
&'life0 self,
path: &'life1 str,
index: &'life2 Option<Document>
) -> Pin<Box<dyn Future<Output = Result<Entry<T>, CryptoError>> + Send + 'async_trait>> where
T: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn get_indexed<'life0, 'life1, 'life2, 'async_trait, T: StorableType>(
&'life0 self,
path: &'life1 str,
index: &'life2 Option<Document>
) -> Pin<Box<dyn Future<Output = Result<Entry<T>, CryptoError>> + Send + 'async_trait>> where
T: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Like get, but doesn’t enforce IntoIndex and allows providing a custom index doc
Fetches a list of all the stored keys.
fn list_indexed<'life0, 'life1, 'life2, 'async_trait, T: StorableType>(
&'life0 self,
path: &'life1 str,
skip: u64,
page_size: i64,
index: &'life2 Option<Document>
) -> Pin<Box<dyn Future<Output = Result<Vec<Entry<T>>, CryptoError>> + Send + 'async_trait>> where
T: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn list_indexed<'life0, 'life1, 'life2, 'async_trait, T: StorableType>(
&'life0 self,
path: &'life1 str,
skip: u64,
page_size: i64,
index: &'life2 Option<Document>
) -> Pin<Box<dyn Future<Output = Result<Vec<Entry<T>>, CryptoError>> + Send + 'async_trait>> where
T: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Like list, but doesn’t enforce IntoIndex and allows providing a custom index doc
Fetches the instance of the Key with the given name.
Auto Trait Implementations
impl !RefUnwindSafe for IndexedTypeStorer
impl Send for IndexedTypeStorer
impl Sync for IndexedTypeStorer
impl Unpin for IndexedTypeStorer
impl !UnwindSafe for IndexedTypeStorer
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
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more