#[non_exhaustive]pub struct EkmConnection {
pub connection_name: String,
pub connection_state: ConnectionState,
pub connection_error: Option<ConnectionError>,
/* private fields */
}Expand description
Details about the EKM connection
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.connection_name: StringResource name of the EKM connection in the format: projects/{project}/locations/{location}/ekmConnections/{ekm_connection}
connection_state: ConnectionStateOutput only. The connection state
connection_error: Option<ConnectionError>The connection error that occurred if any
Implementations§
Source§impl EkmConnection
impl EkmConnection
pub fn new() -> Self
Sourcepub fn set_connection_name<T: Into<String>>(self, v: T) -> Self
pub fn set_connection_name<T: Into<String>>(self, v: T) -> Self
Sets the value of connection_name.
§Example
ⓘ
let x = EkmConnection::new().set_connection_name("example");Sourcepub fn set_connection_state<T: Into<ConnectionState>>(self, v: T) -> Self
pub fn set_connection_state<T: Into<ConnectionState>>(self, v: T) -> Self
Sets the value of connection_state.
§Example
ⓘ
use google_cloud_cloudcontrolspartner_v1::model::ekm_connection::ConnectionState;
let x0 = EkmConnection::new().set_connection_state(ConnectionState::Available);
let x1 = EkmConnection::new().set_connection_state(ConnectionState::NotAvailable);
let x2 = EkmConnection::new().set_connection_state(ConnectionState::Error);Sourcepub fn set_connection_error<T>(self, v: T) -> Selfwhere
T: Into<ConnectionError>,
pub fn set_connection_error<T>(self, v: T) -> Selfwhere
T: Into<ConnectionError>,
Sets the value of connection_error.
§Example
ⓘ
use google_cloud_cloudcontrolspartner_v1::model::ekm_connection::ConnectionError;
let x = EkmConnection::new().set_connection_error(ConnectionError::default()/* use setters */);Sourcepub fn set_or_clear_connection_error<T>(self, v: Option<T>) -> Selfwhere
T: Into<ConnectionError>,
pub fn set_or_clear_connection_error<T>(self, v: Option<T>) -> Selfwhere
T: Into<ConnectionError>,
Sets or clears the value of connection_error.
§Example
ⓘ
use google_cloud_cloudcontrolspartner_v1::model::ekm_connection::ConnectionError;
let x = EkmConnection::new().set_or_clear_connection_error(Some(ConnectionError::default()/* use setters */));
let x = EkmConnection::new().set_or_clear_connection_error(None::<ConnectionError>);Trait Implementations§
Source§impl Clone for EkmConnection
impl Clone for EkmConnection
Source§fn clone(&self) -> EkmConnection
fn clone(&self) -> EkmConnection
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 EkmConnection
impl Debug for EkmConnection
Source§impl Default for EkmConnection
impl Default for EkmConnection
Source§fn default() -> EkmConnection
fn default() -> EkmConnection
Returns the “default value” for a type. Read more
Source§impl Message for EkmConnection
impl Message for EkmConnection
Source§impl PartialEq for EkmConnection
impl PartialEq for EkmConnection
impl StructuralPartialEq for EkmConnection
Auto Trait Implementations§
impl Freeze for EkmConnection
impl RefUnwindSafe for EkmConnection
impl Send for EkmConnection
impl Sync for EkmConnection
impl Unpin for EkmConnection
impl UnwindSafe for EkmConnection
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