Struct google_api_proto::google::cloud::clouddms::v1::ConnectionProfile
source · pub struct ConnectionProfile {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: BTreeMap<String, String>,
pub state: i32,
pub display_name: String,
pub error: Option<Status>,
pub provider: i32,
pub connection_profile: Option<ConnectionProfile>,
}
Expand description
A connection profile definition.
Fields§
§name: String
The name of this connection profile resource in the form of projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}.
create_time: Option<Timestamp>
Output only. The timestamp when the resource was created. A timestamp in RFC3339 UTC “Zulu” format, accurate to nanoseconds. Example: “2014-10-02T15:01:23.045123456Z”.
update_time: Option<Timestamp>
Output only. The timestamp when the resource was last updated. A timestamp in RFC3339 UTC “Zulu” format, accurate to nanoseconds. Example: “2014-10-02T15:01:23.045123456Z”.
labels: BTreeMap<String, String>
The resource labels for connection profile to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of “key”: “value” pairs.
Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }
.
state: i32
The current connection profile state (e.g. DRAFT, READY, or FAILED).
display_name: String
The connection profile display name.
error: Option<Status>
Output only. The error details in case of state FAILED.
provider: i32
The database provider.
connection_profile: Option<ConnectionProfile>
The connection profile definition.
Implementations§
source§impl ConnectionProfile
impl ConnectionProfile
sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn provider(&self) -> DatabaseProvider
pub fn provider(&self) -> DatabaseProvider
Returns the enum value of provider
, or the default if the field is set to an invalid enum value.
sourcepub fn set_provider(&mut self, value: DatabaseProvider)
pub fn set_provider(&mut self, value: DatabaseProvider)
Sets provider
to the provided enum value.
Trait Implementations§
source§impl Clone for ConnectionProfile
impl Clone for ConnectionProfile
source§fn clone(&self) -> ConnectionProfile
fn clone(&self) -> ConnectionProfile
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConnectionProfile
impl Debug for ConnectionProfile
source§impl Default for ConnectionProfile
impl Default for ConnectionProfile
source§impl Message for ConnectionProfile
impl Message for ConnectionProfile
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ConnectionProfile
impl PartialEq for ConnectionProfile
source§fn eq(&self, other: &ConnectionProfile) -> bool
fn eq(&self, other: &ConnectionProfile) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConnectionProfile
Auto Trait Implementations§
impl Freeze for ConnectionProfile
impl RefUnwindSafe for ConnectionProfile
impl Send for ConnectionProfile
impl Sync for ConnectionProfile
impl Unpin for ConnectionProfile
impl UnwindSafe for ConnectionProfile
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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