#[non_exhaustive]pub struct NetworkAddressReservation {
pub start_address: String,
pub end_address: String,
pub note: String,
/* private fields */
}Expand description
A reservation of one or more addresses in a network.
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.start_address: StringThe first address of this reservation block. Must be specified as a single IPv4 address, e.g. 10.1.2.2.
end_address: StringThe last address of this reservation block, inclusive. I.e., for cases when reservations are only single addresses, end_address and start_address will be the same. Must be specified as a single IPv4 address, e.g. 10.1.2.2.
note: StringA note about this reservation, intended for human consumption.
Implementations§
Source§impl NetworkAddressReservation
impl NetworkAddressReservation
pub fn new() -> Self
Sourcepub fn set_start_address<T: Into<String>>(self, v: T) -> Self
pub fn set_start_address<T: Into<String>>(self, v: T) -> Self
Sets the value of start_address.
Sourcepub fn set_end_address<T: Into<String>>(self, v: T) -> Self
pub fn set_end_address<T: Into<String>>(self, v: T) -> Self
Sets the value of end_address.
Trait Implementations§
Source§impl Clone for NetworkAddressReservation
impl Clone for NetworkAddressReservation
Source§fn clone(&self) -> NetworkAddressReservation
fn clone(&self) -> NetworkAddressReservation
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 NetworkAddressReservation
impl Debug for NetworkAddressReservation
Source§impl Default for NetworkAddressReservation
impl Default for NetworkAddressReservation
Source§fn default() -> NetworkAddressReservation
fn default() -> NetworkAddressReservation
Returns the “default value” for a type. Read more
Source§impl Message for NetworkAddressReservation
impl Message for NetworkAddressReservation
impl StructuralPartialEq for NetworkAddressReservation
Auto Trait Implementations§
impl Freeze for NetworkAddressReservation
impl RefUnwindSafe for NetworkAddressReservation
impl Send for NetworkAddressReservation
impl Sync for NetworkAddressReservation
impl Unpin for NetworkAddressReservation
impl UnwindSafe for NetworkAddressReservation
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