Skip to main content

ConnectionString

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>,
}
Available on crate feature export-azure only.
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ยง

Trait Implementationsยง

Sourceยง

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

Sourceยง

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

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ยง

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<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> PolicyExt for T
where T: ?Sized,

Sourceยง

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Sourceยง

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
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.
Sourceยง

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

Sourceยง

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