#[non_exhaustive]pub struct ForwardingRulesScopedList {
pub forwarding_rules: Vec<ForwardingRule>,
pub warning: Option<Warning>,
/* private fields */
}Available on crate feature
forwarding-rules 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_rules: Vec<ForwardingRule>A list of forwarding rules contained in this scope.
warning: Option<Warning>Informational warning which replaces the list of forwarding rules when the list is empty.
Implementations§
Source§impl ForwardingRulesScopedList
impl ForwardingRulesScopedList
pub fn new() -> Self
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.
§Example
ⓘ
use google_cloud_compute_v1::model::ForwardingRule;
let x = ForwardingRulesScopedList::new()
.set_forwarding_rules([
ForwardingRule::default()/* use setters */,
ForwardingRule::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::forwarding_rules_scoped_list::Warning;
let x = ForwardingRulesScopedList::new().set_or_clear_warning(Some(Warning::default()/* use setters */));
let x = ForwardingRulesScopedList::new().set_or_clear_warning(None::<Warning>);Trait Implementations§
Source§impl Clone for ForwardingRulesScopedList
impl Clone for ForwardingRulesScopedList
Source§fn clone(&self) -> ForwardingRulesScopedList
fn clone(&self) -> ForwardingRulesScopedList
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 ForwardingRulesScopedList
impl Debug for ForwardingRulesScopedList
Source§impl Default for ForwardingRulesScopedList
impl Default for ForwardingRulesScopedList
Source§fn default() -> ForwardingRulesScopedList
fn default() -> ForwardingRulesScopedList
Returns the “default value” for a type. Read more
Source§impl Message for ForwardingRulesScopedList
impl Message for ForwardingRulesScopedList
impl StructuralPartialEq for ForwardingRulesScopedList
Auto Trait Implementations§
impl Freeze for ForwardingRulesScopedList
impl RefUnwindSafe for ForwardingRulesScopedList
impl Send for ForwardingRulesScopedList
impl Sync for ForwardingRulesScopedList
impl Unpin for ForwardingRulesScopedList
impl UnwindSafe for ForwardingRulesScopedList
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