azure_storage

Struct ConnectionString

Source
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>

Source

pub fn new(connection_string: &'a str) -> Result<Self>

Source

pub fn storage_credentials(&self) -> Result<StorageCredentials>

Trait Implementations§

Source§

impl<'a> Debug for ConnectionString<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Default for ConnectionString<'a>

Source§

fn default() -> ConnectionString<'a>

Returns the “default value” for a type. Read more
Source§

impl<'a> PartialEq for ConnectionString<'a>

Source§

fn eq(&self, other: &ConnectionString<'a>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'a> Eq for ConnectionString<'a>

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

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
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more