pub enum StorageBinding {
S3(S3StorageBinding),
Blob(BlobStorageBinding),
Gcs(GcsStorageBinding),
Local(LocalStorageBinding),
}Expand description
Service-type based storage binding that supports multiple storage providers
Variants§
S3(S3StorageBinding)
AWS S3
Blob(BlobStorageBinding)
Azure Blob Storage
Gcs(GcsStorageBinding)
Google Cloud Storage
Local(LocalStorageBinding)
Local filesystem storage
Implementations§
Source§impl StorageBinding
impl StorageBinding
Sourcepub fn s3(bucket_name: impl Into<BindingValue<String>>) -> Self
pub fn s3(bucket_name: impl Into<BindingValue<String>>) -> Self
Creates an S3 storage binding
Sourcepub fn blob(
account_name: impl Into<BindingValue<String>>,
container_name: impl Into<BindingValue<String>>,
) -> Self
pub fn blob( account_name: impl Into<BindingValue<String>>, container_name: impl Into<BindingValue<String>>, ) -> Self
Creates an Azure Blob storage binding
Sourcepub fn gcs(bucket_name: impl Into<BindingValue<String>>) -> Self
pub fn gcs(bucket_name: impl Into<BindingValue<String>>) -> Self
Creates a GCS storage binding
Sourcepub fn local(storage_path: impl Into<BindingValue<String>>) -> Self
pub fn local(storage_path: impl Into<BindingValue<String>>) -> Self
Creates a local storage binding
Trait Implementations§
Source§impl Clone for StorageBinding
impl Clone for StorageBinding
Source§fn clone(&self) -> StorageBinding
fn clone(&self) -> StorageBinding
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StorageBinding
impl Debug for StorageBinding
Source§impl<'de> Deserialize<'de> for StorageBinding
impl<'de> Deserialize<'de> for StorageBinding
Source§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
Source§impl PartialEq for StorageBinding
impl PartialEq for StorageBinding
Source§impl Serialize for StorageBinding
impl Serialize for StorageBinding
impl Eq for StorageBinding
impl StructuralPartialEq for StorageBinding
Auto Trait Implementations§
impl Freeze for StorageBinding
impl RefUnwindSafe for StorageBinding
impl Send for StorageBinding
impl Sync for StorageBinding
impl Unpin for StorageBinding
impl UnsafeUnpin for StorageBinding
impl UnwindSafe for StorageBinding
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.