#[non_exhaustive]pub struct NetworkEdgeSecurityServicesScopedList {
pub network_edge_security_services: Vec<NetworkEdgeSecurityService>,
pub warning: Option<Warning>,
/* private fields */
}Available on crate feature
network-edge-security-services only.Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.network_edge_security_services: Vec<NetworkEdgeSecurityService>A list of NetworkEdgeSecurityServices contained in this scope.
warning: Option<Warning>Informational warning which replaces the list of security policies when the list is empty.
Implementations§
Source§impl NetworkEdgeSecurityServicesScopedList
impl NetworkEdgeSecurityServicesScopedList
pub fn new() -> Self
Sourcepub fn set_network_edge_security_services<T, V>(self, v: T) -> Self
pub fn set_network_edge_security_services<T, V>(self, v: T) -> Self
Sets the value of network_edge_security_services.
§Example
ⓘ
use google_cloud_compute_v1::model::NetworkEdgeSecurityService;
let x = NetworkEdgeSecurityServicesScopedList::new()
.set_network_edge_security_services([
NetworkEdgeSecurityService::default()/* use setters */,
NetworkEdgeSecurityService::default()/* use (different) setters */,
]);Sourcepub fn set_warning<T>(self, v: T) -> Self
pub fn set_warning<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_warning<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_warning<T>(self, v: Option<T>) -> Self
Sets or clears the value of warning.
§Example
ⓘ
use google_cloud_compute_v1::model::network_edge_security_services_scoped_list::Warning;
let x = NetworkEdgeSecurityServicesScopedList::new().set_or_clear_warning(Some(Warning::default()/* use setters */));
let x = NetworkEdgeSecurityServicesScopedList::new().set_or_clear_warning(None::<Warning>);Trait Implementations§
Source§impl Clone for NetworkEdgeSecurityServicesScopedList
impl Clone for NetworkEdgeSecurityServicesScopedList
Source§fn clone(&self) -> NetworkEdgeSecurityServicesScopedList
fn clone(&self) -> NetworkEdgeSecurityServicesScopedList
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for NetworkEdgeSecurityServicesScopedList
impl Default for NetworkEdgeSecurityServicesScopedList
Source§fn default() -> NetworkEdgeSecurityServicesScopedList
fn default() -> NetworkEdgeSecurityServicesScopedList
Returns the “default value” for a type. Read more
Source§impl PartialEq for NetworkEdgeSecurityServicesScopedList
impl PartialEq for NetworkEdgeSecurityServicesScopedList
Source§fn eq(&self, other: &NetworkEdgeSecurityServicesScopedList) -> bool
fn eq(&self, other: &NetworkEdgeSecurityServicesScopedList) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NetworkEdgeSecurityServicesScopedList
Auto Trait Implementations§
impl Freeze for NetworkEdgeSecurityServicesScopedList
impl RefUnwindSafe for NetworkEdgeSecurityServicesScopedList
impl Send for NetworkEdgeSecurityServicesScopedList
impl Sync for NetworkEdgeSecurityServicesScopedList
impl Unpin for NetworkEdgeSecurityServicesScopedList
impl UnwindSafe for NetworkEdgeSecurityServicesScopedList
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
Mutably borrows from an owned value. Read more