#[non_exhaustive]pub struct ForwardingRuleReference {
pub forwarding_rule: Option<String>,
/* private fields */
}Available on crate features
global-network-endpoint-groups or network-endpoint-groups or region-network-endpoint-groups 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.forwarding_rule: Option<String>Implementations§
Source§impl ForwardingRuleReference
impl ForwardingRuleReference
pub fn new() -> Self
Sourcepub fn set_forwarding_rule<T>(self, v: T) -> Self
pub fn set_forwarding_rule<T>(self, v: T) -> Self
Sets the value of forwarding_rule.
§Example
ⓘ
let x = ForwardingRuleReference::new().set_forwarding_rule("example");Sourcepub fn set_or_clear_forwarding_rule<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_forwarding_rule<T>(self, v: Option<T>) -> Self
Sets or clears the value of forwarding_rule.
§Example
ⓘ
let x = ForwardingRuleReference::new().set_or_clear_forwarding_rule(Some("example"));
let x = ForwardingRuleReference::new().set_or_clear_forwarding_rule(None::<String>);Trait Implementations§
Source§impl Clone for ForwardingRuleReference
impl Clone for ForwardingRuleReference
Source§fn clone(&self) -> ForwardingRuleReference
fn clone(&self) -> ForwardingRuleReference
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 ForwardingRuleReference
impl Debug for ForwardingRuleReference
Source§impl Default for ForwardingRuleReference
impl Default for ForwardingRuleReference
Source§fn default() -> ForwardingRuleReference
fn default() -> ForwardingRuleReference
Returns the “default value” for a type. Read more
Source§impl Message for ForwardingRuleReference
impl Message for ForwardingRuleReference
Source§impl PartialEq for ForwardingRuleReference
impl PartialEq for ForwardingRuleReference
impl StructuralPartialEq for ForwardingRuleReference
Auto Trait Implementations§
impl Freeze for ForwardingRuleReference
impl RefUnwindSafe for ForwardingRuleReference
impl Send for ForwardingRuleReference
impl Sync for ForwardingRuleReference
impl Unpin for ForwardingRuleReference
impl UnwindSafe for ForwardingRuleReference
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