#[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
pub fn new() -> Self
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more