#[non_exhaustive]pub struct RouterAdvertisedIpRange {
pub description: Option<String>,
pub range: Option<String>,
/* private fields */
}Available on crate feature
routers only.Expand description
Description-tagged IP ranges for the router to advertise.
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.description: Option<String>User-specified description for the IP range.
range: Option<String>The IP range to advertise. The value must be a CIDR-formatted string.
Implementations§
Source§impl RouterAdvertisedIpRange
impl RouterAdvertisedIpRange
pub fn new() -> Self
Sourcepub fn set_description<T>(self, v: T) -> Self
pub fn set_description<T>(self, v: T) -> Self
Sets the value of description.
§Example
ⓘ
let x = RouterAdvertisedIpRange::new().set_description("example");Sourcepub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
Sets or clears the value of description.
§Example
ⓘ
let x = RouterAdvertisedIpRange::new().set_or_clear_description(Some("example"));
let x = RouterAdvertisedIpRange::new().set_or_clear_description(None::<String>);Trait Implementations§
Source§impl Clone for RouterAdvertisedIpRange
impl Clone for RouterAdvertisedIpRange
Source§fn clone(&self) -> RouterAdvertisedIpRange
fn clone(&self) -> RouterAdvertisedIpRange
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 RouterAdvertisedIpRange
impl Debug for RouterAdvertisedIpRange
Source§impl Default for RouterAdvertisedIpRange
impl Default for RouterAdvertisedIpRange
Source§fn default() -> RouterAdvertisedIpRange
fn default() -> RouterAdvertisedIpRange
Returns the “default value” for a type. Read more
Source§impl Message for RouterAdvertisedIpRange
impl Message for RouterAdvertisedIpRange
Source§impl PartialEq for RouterAdvertisedIpRange
impl PartialEq for RouterAdvertisedIpRange
impl StructuralPartialEq for RouterAdvertisedIpRange
Auto Trait Implementations§
impl Freeze for RouterAdvertisedIpRange
impl RefUnwindSafe for RouterAdvertisedIpRange
impl Send for RouterAdvertisedIpRange
impl Sync for RouterAdvertisedIpRange
impl Unpin for RouterAdvertisedIpRange
impl UnwindSafe for RouterAdvertisedIpRange
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