#[non_exhaustive]pub struct DnsForwarding {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub forwarding_rules: Vec<ForwardingRule>,
/* private fields */
}Expand description
DNS forwarding config. This config defines a list of domain to name server mappings, and is attached to the private cloud for custom domain resolution.
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.name: StringOutput only. The resource name of this DNS profile.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
projects/my-project/locations/us-central1-a/privateClouds/my-cloud/dnsForwarding
create_time: Option<Timestamp>Output only. Creation time of this resource.
update_time: Option<Timestamp>Output only. Last update time of this resource.
forwarding_rules: Vec<ForwardingRule>Required. List of domain mappings to configure
Implementations§
Source§impl DnsForwarding
impl DnsForwarding
pub fn new() -> 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.
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.
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.
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.
Sourcepub fn set_forwarding_rules<T, V>(self, v: T) -> Self
pub fn set_forwarding_rules<T, V>(self, v: T) -> Self
Sets the value of forwarding_rules.
Trait Implementations§
Source§impl Clone for DnsForwarding
impl Clone for DnsForwarding
Source§fn clone(&self) -> DnsForwarding
fn clone(&self) -> DnsForwarding
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 Debug for DnsForwarding
impl Debug for DnsForwarding
Source§impl Default for DnsForwarding
impl Default for DnsForwarding
Source§fn default() -> DnsForwarding
fn default() -> DnsForwarding
Returns the “default value” for a type. Read more
Source§impl Message for DnsForwarding
impl Message for DnsForwarding
Source§impl PartialEq for DnsForwarding
impl PartialEq for DnsForwarding
impl StructuralPartialEq for DnsForwarding
Auto Trait Implementations§
impl Freeze for DnsForwarding
impl RefUnwindSafe for DnsForwarding
impl Send for DnsForwarding
impl Sync for DnsForwarding
impl Unpin for DnsForwarding
impl UnwindSafe for DnsForwarding
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