Struct openstack_sdk::config::CloudConfig
source · pub struct CloudConfig {
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 options: HashMap<String, Value>,
/* private fields */
}Expand description
CloudConfig structure
Fields§
§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
options: HashMap<String, Value>All other options
Implementations§
source§impl CloudConfig
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 copy 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 Request<'_>
impl TryFrom<&CloudConfig> for Request<'_>
Build Auth request from CloudConfig
Auto Trait Implementations§
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