#[non_exhaustive]pub struct ConnectionDetail {
pub connection: Option<Connection>,
/* private fields */
}Expand description
Detailed information of each PSC connection.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.connection: Option<Connection>A PSC connection to a cluster could either be created through Service Connectivity Automation (auto-registered connection) during the cluster creation, or it could be created by customer themselves (user-registered connection).
Implementations§
Source§impl ConnectionDetail
impl ConnectionDetail
pub fn new() -> Self
Sourcepub fn set_connection<T: Into<Option<Connection>>>(self, v: T) -> Self
pub fn set_connection<T: Into<Option<Connection>>>(self, v: T) -> Self
Sets the value of connection.
Note that all the setters affecting connection are mutually
exclusive.
Sourcepub fn psc_auto_connection(&self) -> Option<&Box<PscAutoConnection>>
pub fn psc_auto_connection(&self) -> Option<&Box<PscAutoConnection>>
The value of connection
if it holds a PscAutoConnection, None if the field is not set or
holds a different branch.
Sourcepub fn set_psc_auto_connection<T: Into<Box<PscAutoConnection>>>(
self,
v: T,
) -> Self
pub fn set_psc_auto_connection<T: Into<Box<PscAutoConnection>>>( self, v: T, ) -> Self
Sets the value of connection
to hold a PscAutoConnection.
Note that all the setters affecting connection are
mutually exclusive.
Sourcepub fn psc_connection(&self) -> Option<&Box<PscConnection>>
pub fn psc_connection(&self) -> Option<&Box<PscConnection>>
The value of connection
if it holds a PscConnection, None if the field is not set or
holds a different branch.
Sourcepub fn set_psc_connection<T: Into<Box<PscConnection>>>(self, v: T) -> Self
pub fn set_psc_connection<T: Into<Box<PscConnection>>>(self, v: T) -> Self
Sets the value of connection
to hold a PscConnection.
Note that all the setters affecting connection are
mutually exclusive.
Trait Implementations§
Source§impl Clone for ConnectionDetail
impl Clone for ConnectionDetail
Source§fn clone(&self) -> ConnectionDetail
fn clone(&self) -> ConnectionDetail
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more