#[non_exhaustive]pub struct ConnectionDetail {
pub connection: Option<Connection>,
/* private fields */
}Expand description
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 an instance could either be created through Service Connectivity Automation (auto connection) during the cluster creation, or it could be created by customer themeslves (user-created connection).
Implementations§
Source§impl ConnectionDetail
impl ConnectionDetail
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.
§Example
use google_cloud_memorystore_v1::model::PscAutoConnection;
let x = ConnectionDetail::new().set_connection(Some(
google_cloud_memorystore_v1::model::instance::connection_detail::Connection::PscAutoConnection(PscAutoConnection::default().into())));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.
§Example
use google_cloud_memorystore_v1::model::PscAutoConnection;
let x = ConnectionDetail::new().set_psc_auto_connection(PscAutoConnection::default()/* use setters */);
assert!(x.psc_auto_connection().is_some());
assert!(x.psc_connection().is_none());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.
§Example
use google_cloud_memorystore_v1::model::PscConnection;
let x = ConnectionDetail::new().set_psc_connection(PscConnection::default()/* use setters */);
assert!(x.psc_connection().is_some());
assert!(x.psc_auto_connection().is_none());Trait Implementations§
Source§impl Clone for ConnectionDetail
impl Clone for ConnectionDetail
Source§fn clone(&self) -> ConnectionDetail
fn clone(&self) -> ConnectionDetail
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConnectionDetail
impl Debug for ConnectionDetail
Source§impl Default for ConnectionDetail
impl Default for ConnectionDetail
Source§fn default() -> ConnectionDetail
fn default() -> ConnectionDetail
Source§impl Message for ConnectionDetail
impl Message for ConnectionDetail
Source§impl PartialEq for ConnectionDetail
impl PartialEq for ConnectionDetail
impl StructuralPartialEq for ConnectionDetail
Auto Trait Implementations§
impl Freeze for ConnectionDetail
impl RefUnwindSafe for ConnectionDetail
impl Send for ConnectionDetail
impl Sync for ConnectionDetail
impl Unpin for ConnectionDetail
impl UnsafeUnpin for ConnectionDetail
impl UnwindSafe for ConnectionDetail
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request