pub struct CloudConfig {
pub auth: Option<Auth>,
pub auth_type: Option<String>,
pub auth_methods: Option<Vec<String>>,
pub profile: Option<String>,
pub interface: Option<String>,
pub region_name: Option<String>,
pub cacert: Option<String>,
pub verify: Option<bool>,
pub options: HashMap<String, Value>,
}
Expand description
CloudConfig structure
Fields§
§auth: Option<Auth>
Authorization data
auth_type: Option<String>
Authorization type. While it can be enum it would make hard to extend SDK with custom implementations
auth_methods: Option<Vec<String>>
Authorization methods (in the case when auth_type = multifactor
.
profile: Option<String>
Vendor Profile (by name from clouds-public.yaml or TBD: URL)
interface: Option<String>
Interface name to be used for endpoints selection
region_name: Option<String>
Region name
cacert: Option<String>
Custom CA Certificate
verify: Option<bool>
Verify SSL Certificates
options: HashMap<String, Value>
All other options
Implementations§
Source§impl CloudConfig
CloudConfig struct implementation
impl CloudConfig
CloudConfig struct implementation
Sourcepub fn update(&mut self, update: &CloudConfig)
pub fn update(&mut self, update: &CloudConfig)
Update unset CloudConfig with values from the update
var
Trait Implementations§
Source§impl Clone for CloudConfig
impl Clone for CloudConfig
Source§fn clone(&self) -> CloudConfig
fn clone(&self) -> CloudConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CloudConfig
impl Debug for CloudConfig
Source§impl Default for CloudConfig
impl Default for CloudConfig
Source§fn default() -> CloudConfig
fn default() -> CloudConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CloudConfig
impl<'de> Deserialize<'de> for CloudConfig
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
Source§impl TryFrom<&CloudConfig> for AuthTokenScope
Build AuthTokenScope
data from CloudConfig
impl TryFrom<&CloudConfig> for AuthTokenScope
Build AuthTokenScope
data from CloudConfig
Source§type Error = AuthTokenScopeError
type Error = AuthTokenScopeError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for CloudConfig
impl RefUnwindSafe for CloudConfig
impl Send for CloudConfig
impl Sync for CloudConfig
impl Unpin for CloudConfig
impl UnwindSafe for CloudConfig
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more