pub struct ConnectionString<'a> {Show 15 fields
pub account_name: Option<&'a str>,
pub account_key: Option<&'a str>,
pub sas: Option<&'a str>,
pub default_endpoints_protocol: Option<EndpointProtocol>,
pub endpoint_suffix: Option<&'a str>,
pub use_development_storage: Option<bool>,
pub development_storage_proxy_uri: Option<&'a str>,
pub blob_endpoint: Option<&'a str>,
pub blob_secondary_endpoint: Option<&'a str>,
pub table_endpoint: Option<&'a str>,
pub table_secondary_endpoint: Option<&'a str>,
pub queue_endpoint: Option<&'a str>,
pub queue_secondary_endpoint: Option<&'a str>,
pub file_endpoint: Option<&'a str>,
pub file_secondary_endpoint: Option<&'a str>,
}
Expand description
A storage connection string.
The key are a subset of what is defined in the .NET SDK.
Fields§
§account_name: Option<&'a str>
Name of the storage account.
account_key: Option<&'a str>
Account key of the storage account.
sas: Option<&'a str>
SAS (Shared Access Signature) key of the storage account.
default_endpoints_protocol: Option<EndpointProtocol>
Default protocol to use for storage endpoints.
endpoint_suffix: Option<&'a str>
Whether to use development storage.
use_development_storage: Option<bool>
The development storage proxy URI.
development_storage_proxy_uri: Option<&'a str>
Custom storage endpoint suffix.
blob_endpoint: Option<&'a str>
Custom blob storage endpoint.
blob_secondary_endpoint: Option<&'a str>
Custom blob storage secondary endpoint.
table_endpoint: Option<&'a str>
Custom table storage endpoint.
table_secondary_endpoint: Option<&'a str>
Custom table storage secondary endpoint.
queue_endpoint: Option<&'a str>
Custom queue storage endpoint.
queue_secondary_endpoint: Option<&'a str>
Custom queue storage secondary endpoint.
file_endpoint: Option<&'a str>
Custom file storage endpoint.
file_secondary_endpoint: Option<&'a str>
Custom file storage secondary endpoint.
Implementations§
Source§impl<'a> ConnectionString<'a>
impl<'a> ConnectionString<'a>
pub fn new(connection_string: &'a str) -> Result<Self>
pub fn storage_credentials(&self) -> Result<StorageCredentials>
Trait Implementations§
Source§impl<'a> Debug for ConnectionString<'a>
impl<'a> Debug for ConnectionString<'a>
Source§impl<'a> Default for ConnectionString<'a>
impl<'a> Default for ConnectionString<'a>
Source§fn default() -> ConnectionString<'a>
fn default() -> ConnectionString<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> PartialEq for ConnectionString<'a>
impl<'a> PartialEq for ConnectionString<'a>
impl<'a> Eq for ConnectionString<'a>
impl<'a> StructuralPartialEq for ConnectionString<'a>
Auto Trait Implementations§
impl<'a> Freeze for ConnectionString<'a>
impl<'a> RefUnwindSafe for ConnectionString<'a>
impl<'a> Send for ConnectionString<'a>
impl<'a> Sync for ConnectionString<'a>
impl<'a> Unpin for ConnectionString<'a>
impl<'a> UnwindSafe for ConnectionString<'a>
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 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.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.