#[non_exhaustive]pub struct ForwardingRule {
pub domain: String,
pub name_servers: Vec<String>,
/* private fields */
}Expand description
A forwarding rule is a mapping of a domain to name_servers.
This mapping allows VMware Engine to resolve domains for attached private
clouds by forwarding DNS requests for a given domain to the specified
nameservers.
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.domain: StringRequired. Domain used to resolve a name_servers list.
name_servers: Vec<String>Required. List of DNS servers to use for domain resolution
Implementations§
Source§impl ForwardingRule
impl ForwardingRule
pub fn new() -> Self
Sourcepub fn set_domain<T: Into<String>>(self, v: T) -> Self
pub fn set_domain<T: Into<String>>(self, v: T) -> Self
Sets the value of domain.
Sourcepub fn set_name_servers<T, V>(self, v: T) -> Self
pub fn set_name_servers<T, V>(self, v: T) -> Self
Sets the value of name_servers.
Trait Implementations§
Source§impl Clone for ForwardingRule
impl Clone for ForwardingRule
Source§fn clone(&self) -> ForwardingRule
fn clone(&self) -> ForwardingRule
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 ForwardingRule
impl Debug for ForwardingRule
Source§impl Default for ForwardingRule
impl Default for ForwardingRule
Source§fn default() -> ForwardingRule
fn default() -> ForwardingRule
Returns the “default value” for a type. Read more
Source§impl Message for ForwardingRule
impl Message for ForwardingRule
Source§impl PartialEq for ForwardingRule
impl PartialEq for ForwardingRule
impl StructuralPartialEq for ForwardingRule
Auto Trait Implementations§
impl Freeze for ForwardingRule
impl RefUnwindSafe for ForwardingRule
impl Send for ForwardingRule
impl Sync for ForwardingRule
impl Unpin for ForwardingRule
impl UnwindSafe for ForwardingRule
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