Struct cni_plugin::reply::Ip[][src]

pub struct Ip {
    pub address: IpNetwork,
    pub gateway: Option<IpAddr>,
    pub interface: Option<usize>,
}

IP structure for success reply types.

Fields

address: IpNetwork

The IP address.

gateway: Option<IpAddr>

The default gateway for this subnet, if one exists.

interface: Option<usize>

The interface this IP is for.

This must be the index into the interfaces list on the parent success reply structure. It should be None for IPAM success replies.

Trait Implementations

impl Clone for Ip[src]

impl Debug for Ip[src]

impl<'de> Deserialize<'de> for Ip[src]

impl Serialize for Ip[src]

Auto Trait Implementations

impl RefUnwindSafe for Ip

impl Send for Ip

impl Sync for Ip

impl Unpin for Ip

impl UnwindSafe for Ip

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.