#[non_exhaustive]pub struct NetworkProfile {
pub creation_timestamp: Option<String>,
pub description: Option<String>,
pub features: Option<NetworkProfileNetworkFeatures>,
pub id: Option<u64>,
pub kind: Option<String>,
pub location: Option<NetworkProfileLocation>,
pub name: Option<String>,
pub profile_type: Option<NetworkProfileProfileType>,
pub self_link: Option<String>,
pub self_link_with_id: Option<String>,
/* private fields */
}network-profiles only.Expand description
NetworkProfile represents a Google managed network profile 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.creation_timestamp: Option<String>Output only. [Output Only] Creation timestamp inRFC3339 text format.
description: Option<String>Output only. [Output Only] An optional description of this resource.
features: Option<NetworkProfileNetworkFeatures>Output only. [Output Only] Features supported by the network.
id: Option<u64>Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
kind: Option<String>Output only. [Output Only] Type of the resource. Alwayscompute#networkProfile for network profiles.
location: Option<NetworkProfileLocation>Output only. [Output Only] Location to which the network is restricted.
name: Option<String>Output only. [Output Only] Name of the resource.
profile_type: Option<NetworkProfileProfileType>Output only. [Output Only] Type of the network profile.
self_link: Option<String>Output only. [Output Only] Server-defined URL for the resource.
self_link_with_id: Option<String>Output only. [Output Only] Server-defined URL for this resource with the resource id.
Implementations§
Source§impl NetworkProfile
impl NetworkProfile
Sourcepub fn set_creation_timestamp<T>(self, v: T) -> Self
pub fn set_creation_timestamp<T>(self, v: T) -> Self
Sets the value of creation_timestamp.
§Example
let x = NetworkProfile::new().set_creation_timestamp("example");Sourcepub fn set_or_clear_creation_timestamp<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_creation_timestamp<T>(self, v: Option<T>) -> Self
Sets or clears the value of creation_timestamp.
§Example
let x = NetworkProfile::new().set_or_clear_creation_timestamp(Some("example"));
let x = NetworkProfile::new().set_or_clear_creation_timestamp(None::<String>);Sourcepub fn set_description<T>(self, v: T) -> Self
pub fn set_description<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
Sets or clears the value of description.
§Example
let x = NetworkProfile::new().set_or_clear_description(Some("example"));
let x = NetworkProfile::new().set_or_clear_description(None::<String>);Sourcepub fn set_features<T>(self, v: T) -> Selfwhere
T: Into<NetworkProfileNetworkFeatures>,
pub fn set_features<T>(self, v: T) -> Selfwhere
T: Into<NetworkProfileNetworkFeatures>,
Sourcepub fn set_or_clear_features<T>(self, v: Option<T>) -> Selfwhere
T: Into<NetworkProfileNetworkFeatures>,
pub fn set_or_clear_features<T>(self, v: Option<T>) -> Selfwhere
T: Into<NetworkProfileNetworkFeatures>,
Sets or clears the value of features.
§Example
use google_cloud_compute_v1::model::NetworkProfileNetworkFeatures;
let x = NetworkProfile::new().set_or_clear_features(Some(NetworkProfileNetworkFeatures::default()/* use setters */));
let x = NetworkProfile::new().set_or_clear_features(None::<NetworkProfileNetworkFeatures>);Sourcepub fn set_or_clear_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_id<T>(self, v: Option<T>) -> Self
Sourcepub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
Sourcepub fn set_location<T>(self, v: T) -> Selfwhere
T: Into<NetworkProfileLocation>,
pub fn set_location<T>(self, v: T) -> Selfwhere
T: Into<NetworkProfileLocation>,
Sourcepub fn set_or_clear_location<T>(self, v: Option<T>) -> Selfwhere
T: Into<NetworkProfileLocation>,
pub fn set_or_clear_location<T>(self, v: Option<T>) -> Selfwhere
T: Into<NetworkProfileLocation>,
Sets or clears the value of location.
§Example
use google_cloud_compute_v1::model::NetworkProfileLocation;
let x = NetworkProfile::new().set_or_clear_location(Some(NetworkProfileLocation::default()/* use setters */));
let x = NetworkProfile::new().set_or_clear_location(None::<NetworkProfileLocation>);Sourcepub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
Sourcepub fn set_profile_type<T>(self, v: T) -> Selfwhere
T: Into<NetworkProfileProfileType>,
pub fn set_profile_type<T>(self, v: T) -> Selfwhere
T: Into<NetworkProfileProfileType>,
Sets the value of profile_type.
§Example
use google_cloud_compute_v1::model::NetworkProfileProfileType;
let x = NetworkProfile::new().set_profile_type(NetworkProfileProfileType::default()/* use setters */);Sourcepub fn set_or_clear_profile_type<T>(self, v: Option<T>) -> Selfwhere
T: Into<NetworkProfileProfileType>,
pub fn set_or_clear_profile_type<T>(self, v: Option<T>) -> Selfwhere
T: Into<NetworkProfileProfileType>,
Sets or clears the value of profile_type.
§Example
use google_cloud_compute_v1::model::NetworkProfileProfileType;
let x = NetworkProfile::new().set_or_clear_profile_type(Some(NetworkProfileProfileType::default()/* use setters */));
let x = NetworkProfile::new().set_or_clear_profile_type(None::<NetworkProfileProfileType>);Sourcepub fn set_self_link<T>(self, v: T) -> Self
pub fn set_self_link<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_self_link<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_self_link<T>(self, v: Option<T>) -> Self
Sourcepub fn set_self_link_with_id<T>(self, v: T) -> Self
pub fn set_self_link_with_id<T>(self, v: T) -> Self
Sets the value of self_link_with_id.
§Example
let x = NetworkProfile::new().set_self_link_with_id("example");Sourcepub fn set_or_clear_self_link_with_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_self_link_with_id<T>(self, v: Option<T>) -> Self
Sets or clears the value of self_link_with_id.
§Example
let x = NetworkProfile::new().set_or_clear_self_link_with_id(Some("example"));
let x = NetworkProfile::new().set_or_clear_self_link_with_id(None::<String>);Trait Implementations§
Source§impl Clone for NetworkProfile
impl Clone for NetworkProfile
Source§fn clone(&self) -> NetworkProfile
fn clone(&self) -> NetworkProfile
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 NetworkProfile
impl Debug for NetworkProfile
Source§impl Default for NetworkProfile
impl Default for NetworkProfile
Source§fn default() -> NetworkProfile
fn default() -> NetworkProfile
Source§impl Message for NetworkProfile
impl Message for NetworkProfile
Source§impl PartialEq for NetworkProfile
impl PartialEq for NetworkProfile
impl StructuralPartialEq for NetworkProfile
Auto Trait Implementations§
impl Freeze for NetworkProfile
impl RefUnwindSafe for NetworkProfile
impl Send for NetworkProfile
impl Sync for NetworkProfile
impl Unpin for NetworkProfile
impl UnsafeUnpin for NetworkProfile
impl UnwindSafe for NetworkProfile
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