pub struct Alias {
pub name: String,
pub endpoint: String,
pub access_key: String,
pub secret_key: String,
pub region: String,
pub signature: String,
pub bucket_lookup: String,
pub insecure: bool,
pub ca_bundle: Option<String>,
pub retry: Option<RetryConfig>,
pub timeout: Option<TimeoutConfig>,
}Expand description
An alias represents a named S3-compatible storage endpoint
Fields§
§name: StringUnique name for this alias
endpoint: StringS3 endpoint URL
access_key: StringAccess key ID
secret_key: StringSecret access key
region: StringAWS region
signature: StringSignature version: “v4” or “v2”
bucket_lookup: StringBucket lookup style: “auto”, “path”, or “dns”
insecure: boolAllow insecure TLS connections
ca_bundle: Option<String>Path to custom CA bundle
retry: Option<RetryConfig>Retry configuration
timeout: Option<TimeoutConfig>Timeout configuration
Implementations§
Source§impl Alias
impl Alias
Sourcepub fn new(
name: impl Into<String>,
endpoint: impl Into<String>,
access_key: impl Into<String>,
secret_key: impl Into<String>,
) -> Self
pub fn new( name: impl Into<String>, endpoint: impl Into<String>, access_key: impl Into<String>, secret_key: impl Into<String>, ) -> Self
Create a new alias with required fields
Sourcepub fn retry_config(&self) -> RetryConfig
pub fn retry_config(&self) -> RetryConfig
Get the effective retry configuration
Sourcepub fn timeout_config(&self) -> TimeoutConfig
pub fn timeout_config(&self) -> TimeoutConfig
Get the effective timeout configuration
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Alias
impl<'de> Deserialize<'de> for Alias
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
Auto Trait Implementations§
impl Freeze for Alias
impl RefUnwindSafe for Alias
impl Send for Alias
impl Sync for Alias
impl Unpin for Alias
impl UnsafeUnpin for Alias
impl UnwindSafe for Alias
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