pub struct AllocNetworkStatus {
pub interface_name: String,
pub address: String,
pub address_ipv6: String,
pub dns: Option<DnsConfig>,
}
Expand description
AllocNetworkStatus captures the status of an allocation’s network during runtime. Depending on the network mode, an allocation’s address may need to be known to other systems in Nomad such as service registration.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§interface_name: String
§address: String
§address_ipv6: String
§dns: Option<DnsConfig>
Implementations§
Source§impl AllocNetworkStatus
impl AllocNetworkStatus
pub fn builder() -> AllocNetworkStatusBuilder
Trait Implementations§
Source§impl Clone for AllocNetworkStatus
impl Clone for AllocNetworkStatus
Source§fn clone(&self) -> AllocNetworkStatus
fn clone(&self) -> AllocNetworkStatus
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 AllocNetworkStatus
impl Debug for AllocNetworkStatus
Source§impl Default for AllocNetworkStatus
impl Default for AllocNetworkStatus
Source§fn default() -> AllocNetworkStatus
fn default() -> AllocNetworkStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AllocNetworkStatus
impl<'de> Deserialize<'de> for AllocNetworkStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AllocNetworkStatus
impl PartialEq for AllocNetworkStatus
Source§impl Serialize for AllocNetworkStatus
impl Serialize for AllocNetworkStatus
impl StructuralPartialEq for AllocNetworkStatus
Auto Trait Implementations§
impl Freeze for AllocNetworkStatus
impl RefUnwindSafe for AllocNetworkStatus
impl Send for AllocNetworkStatus
impl Sync for AllocNetworkStatus
impl Unpin for AllocNetworkStatus
impl UnwindSafe for AllocNetworkStatus
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