#[non_exhaustive]pub struct NetworkAddress {
pub network_id: String,
pub address: String,
pub existing_network_id: String,
/* private fields */
}Expand description
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.network_id: StringId of the network to use, within the same ProvisioningConfig request.
address: StringIPv4 address to be assigned to the server.
existing_network_id: StringName of the existing network to use.
Implementations§
Source§impl NetworkAddress
impl NetworkAddress
pub fn new() -> Self
Sourcepub fn set_network_id<T: Into<String>>(self, v: T) -> Self
pub fn set_network_id<T: Into<String>>(self, v: T) -> Self
Sets the value of network_id.
Sourcepub fn set_address<T: Into<String>>(self, v: T) -> Self
pub fn set_address<T: Into<String>>(self, v: T) -> Self
Sets the value of address.
Sourcepub fn set_existing_network_id<T: Into<String>>(self, v: T) -> Self
pub fn set_existing_network_id<T: Into<String>>(self, v: T) -> Self
Sets the value of existing_network_id.
Trait Implementations§
Source§impl Clone for NetworkAddress
impl Clone for NetworkAddress
Source§fn clone(&self) -> NetworkAddress
fn clone(&self) -> NetworkAddress
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 NetworkAddress
impl Debug for NetworkAddress
Source§impl Default for NetworkAddress
impl Default for NetworkAddress
Source§fn default() -> NetworkAddress
fn default() -> NetworkAddress
Returns the “default value” for a type. Read more
Source§impl Message for NetworkAddress
impl Message for NetworkAddress
Source§impl PartialEq for NetworkAddress
impl PartialEq for NetworkAddress
impl StructuralPartialEq for NetworkAddress
Auto Trait Implementations§
impl Freeze for NetworkAddress
impl RefUnwindSafe for NetworkAddress
impl Send for NetworkAddress
impl Sync for NetworkAddress
impl Unpin for NetworkAddress
impl UnwindSafe for NetworkAddress
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