Struct cosmos_utils::CosmosState[][src]

pub struct CosmosState {
    pub cosmos_account: String,
    pub cosmos_database: String,
    pub cosmos_master_key: String,
    pub storage_account: Option<String>,
    pub storage_master_key: Option<String>,
    pub image_storage_container: Option<String>,
}
Expand description

This struct keeps the static state of cosmos DB, it must be initialized before any cosmos functions are called.

Fields

cosmos_account: Stringcosmos_database: Stringcosmos_master_key: Stringstorage_account: Option<String>storage_master_key: Option<String>image_storage_container: Option<String>

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

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

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

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

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

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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

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