#[non_exhaustive]pub struct AddressGroup {
pub name: String,
pub description: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub type: Type,
pub items: Vec<String>,
pub capacity: i32,
pub self_link: String,
pub purpose: Vec<Purpose>,
/* private fields */
}Expand description
AddressGroup is a resource that specifies how a collection of IP/DNS used in Firewall Policy.
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: StringRequired. Name of the AddressGroup resource. It matches pattern
projects/*/locations/{location}/addressGroups/<address_group>.
description: StringOptional. Free-text description of the resource.
create_time: Option<Timestamp>Output only. The timestamp when the resource was created.
update_time: Option<Timestamp>Output only. The timestamp when the resource was updated.
labels: HashMap<String, String>Optional. Set of label tags associated with the AddressGroup resource.
type: TypeRequired. The type of the Address Group. Possible values are “IPv4” or “IPV6”.
items: Vec<String>Optional. List of items.
capacity: i32Required. Capacity of the Address Group
self_link: StringOutput only. Server-defined fully-qualified URL for this resource.
purpose: Vec<Purpose>Optional. List of supported purposes of the Address Group.
Implementations§
Source§impl AddressGroup
impl AddressGroup
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_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 = AddressGroup::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 = AddressGroup::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = AddressGroup::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 = AddressGroup::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 = AddressGroup::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = AddressGroup::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_capacity<T: Into<i32>>(self, v: T) -> Self
pub fn set_capacity<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn set_self_link<T: Into<String>>(self, v: T) -> Self
pub fn set_self_link<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_purpose<T, V>(self, v: T) -> Self
pub fn set_purpose<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for AddressGroup
impl Clone for AddressGroup
Source§fn clone(&self) -> AddressGroup
fn clone(&self) -> AddressGroup
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 AddressGroup
impl Debug for AddressGroup
Source§impl Default for AddressGroup
impl Default for AddressGroup
Source§fn default() -> AddressGroup
fn default() -> AddressGroup
Source§impl Message for AddressGroup
impl Message for AddressGroup
Source§impl PartialEq for AddressGroup
impl PartialEq for AddressGroup
impl StructuralPartialEq for AddressGroup
Auto Trait Implementations§
impl Freeze for AddressGroup
impl RefUnwindSafe for AddressGroup
impl Send for AddressGroup
impl Sync for AddressGroup
impl Unpin for AddressGroup
impl UnsafeUnpin for AddressGroup
impl UnwindSafe for AddressGroup
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