Enum redact_crypto::storage::TypeStorer [−][src]
pub enum TypeStorer {
Redact(RedactStorer),
Mongo(MongoStorer),
Mock(MockStorer),
}Variants
Tuple Fields of Redact
0: RedactStorerTuple Fields of Mongo
0: MongoStorerTuple Fields of Mock
0: MockStorerTrait 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.
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
fn list_indexed<'life0, 'life1, 'life2, 'async_trait, T: StorableType>(
&'life0 self,
path: &'life1 str,
skip: i64,
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: i64,
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
Adds the given Key struct to the backing store.
Fetches the instance of the Key with the given name.
fn list<'life0, 'life1, 'async_trait, T: HasIndex<Index = Document> + StorableType>(
&'life0 self,
path: &'life1 str,
skip: i64,
page_size: i64
) -> Pin<Box<dyn Future<Output = Result<Vec<Entry<T>>, CryptoError>> + Send + 'async_trait>> where
T: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn list<'life0, 'life1, 'async_trait, T: HasIndex<Index = Document> + StorableType>(
&'life0 self,
path: &'life1 str,
skip: i64,
page_size: i64
) -> Pin<Box<dyn Future<Output = Result<Vec<Entry<T>>, CryptoError>> + Send + 'async_trait>> where
T: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Fetches a list of all the stored keys.
Auto Trait Implementations
impl !RefUnwindSafe for TypeStorer
impl Send for TypeStorer
impl Sync for TypeStorer
impl Unpin for TypeStorer
impl !UnwindSafe for TypeStorer
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