Enum htsget_lambda::Storage
source · pub enum Storage {
Tagged(TaggedStorageTypes),
Local {
local_storage: LocalStorage,
},
S3 {
s3_storage: S3Storage,
},
}
Expand description
Specify the storage backend to use as config values.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
source§impl Storage
impl Storage
sourcepub async fn resolve_local_storage<T>(
&self,
query: &Query
) -> impl Future<Output = Option<Result<Response, HtsGetError>>>where
T: ResolveResponse,
pub async fn resolve_local_storage<T>( &self, query: &Query ) -> impl Future<Output = Option<Result<Response, HtsGetError>>>where T: ResolveResponse,
Resolve the local component Storage
into a type that implements FromStorage
. Tagged
Local
storage is not resolved because it is resolved into untagged Local
storage when
Config
is constructed.
sourcepub async fn resolve_s3_storage<T>(
&self,
regex: &Regex,
regex_match: &str,
query: &Query
) -> impl Future<Output = Option<Result<Response, HtsGetError>>>where
T: ResolveResponse,
pub async fn resolve_s3_storage<T>( &self, regex: &Regex, regex_match: &str, query: &Query ) -> impl Future<Output = Option<Result<Response, HtsGetError>>>where T: ResolveResponse,
Resolve the s3 component of Storage
into a type that implements FromStorage
.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Storage
impl<'de> Deserialize<'de> for Storage
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Storage, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Storage, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Storage> for Storage
impl PartialEq<Storage> for Storage
source§impl Serialize for Storage
impl Serialize for Storage
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for Storage
impl StructuralEq for Storage
impl StructuralPartialEq for Storage
Auto Trait Implementations§
impl RefUnwindSafe for Storage
impl Send for Storage
impl Sync for Storage
impl Unpin for Storage
impl UnwindSafe for Storage
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.