#[non_exhaustive]pub struct Destination {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub etag: String,
pub description: String,
pub ip_prefix: String,
pub endpoints: Vec<DestinationEndpoint>,
pub state_timeline: Option<StateTimeline>,
pub uid: String,
/* private fields */
}Expand description
The Destination resource. It specifies the IP prefix and the associated
autonomous system numbers (ASN) that you want to include in a
MulticloudDataTransferConfig resource.
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.name: StringIdentifier. The name of the Destination resource.
Format:
projects/{project}/locations/{location}/multicloudDataTransferConfigs/{multicloud_data_transfer_config}/destinations/{destination}.
create_time: Option<Timestamp>Output only. Time when the Destination resource was created.
update_time: Option<Timestamp>Output only. Time when the Destination resource was updated.
labels: HashMap<String, String>Optional. User-defined labels.
etag: StringThe etag is computed by the server, and might be sent with update and delete requests so that the client has an up-to-date value before proceeding.
description: StringOptional. A description of this resource.
ip_prefix: StringRequired. Immutable. The IP prefix that represents your workload on another CSP.
endpoints: Vec<DestinationEndpoint>Required. Unordered list. The list of DestinationEndpoint resources
configured for the IP prefix.
state_timeline: Option<StateTimeline>Output only. The timeline of the expected Destination states or the
current rest state. If a state change is expected, the value is ADDING,
DELETING or SUSPENDING, depending on the action specified.
Example:
“state_timeline”: {
“states”: [
{
// The time when the Destination resource will be activated.
“effectiveTime”: “2024-12-01T08:00:00Z”,
“state”: “ADDING”
},
{
// The time when the Destination resource will be suspended.
“effectiveTime”: “2024-12-01T20:00:00Z”,
“state”: “SUSPENDING”
}
]
}
uid: StringOutput only. The Google-generated unique ID for the Destination resource.
This value is unique across all Destination resources.
If a resource is deleted and another with the same name is
created, the new resource is assigned a different and unique ID.
Implementations§
Source§impl Destination
impl Destination
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
use wkt::Timestamp;
let x = Destination::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
use wkt::Timestamp;
let x = Destination::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = Destination::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
§Example
use wkt::Timestamp;
let x = Destination::new().set_update_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
§Example
use wkt::Timestamp;
let x = Destination::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = Destination::new().set_or_clear_update_time(None::<Timestamp>);Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_ip_prefix<T: Into<String>>(self, v: T) -> Self
pub fn set_ip_prefix<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_endpoints<T, V>(self, v: T) -> Self
pub fn set_endpoints<T, V>(self, v: T) -> Self
Sourcepub fn set_state_timeline<T>(self, v: T) -> Selfwhere
T: Into<StateTimeline>,
pub fn set_state_timeline<T>(self, v: T) -> Selfwhere
T: Into<StateTimeline>,
Sets the value of state_timeline.
§Example
use google_cloud_networkconnectivity_v1::model::StateTimeline;
let x = Destination::new().set_state_timeline(StateTimeline::default()/* use setters */);Sourcepub fn set_or_clear_state_timeline<T>(self, v: Option<T>) -> Selfwhere
T: Into<StateTimeline>,
pub fn set_or_clear_state_timeline<T>(self, v: Option<T>) -> Selfwhere
T: Into<StateTimeline>,
Sets or clears the value of state_timeline.
§Example
use google_cloud_networkconnectivity_v1::model::StateTimeline;
let x = Destination::new().set_or_clear_state_timeline(Some(StateTimeline::default()/* use setters */));
let x = Destination::new().set_or_clear_state_timeline(None::<StateTimeline>);Trait Implementations§
Source§impl Clone for Destination
impl Clone for Destination
Source§fn clone(&self) -> Destination
fn clone(&self) -> Destination
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 Destination
impl Debug for Destination
Source§impl Default for Destination
impl Default for Destination
Source§fn default() -> Destination
fn default() -> Destination
Source§impl Message for Destination
impl Message for Destination
Source§impl PartialEq for Destination
impl PartialEq for Destination
impl StructuralPartialEq for Destination
Auto Trait Implementations§
impl Freeze for Destination
impl RefUnwindSafe for Destination
impl Send for Destination
impl Sync for Destination
impl Unpin for Destination
impl UnsafeUnpin for Destination
impl UnwindSafe for Destination
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