Struct cni_plugin::reply::VersionReply[][src]

pub struct VersionReply {
    pub cni_version: Version,
    pub supported_versions: Vec<Version>,
}

The reply structure used when returning for a VERSION command.

The spec currently mandates that supported versions are provided as an exhaustive array, but this library hopes to do support according to semver compatibility, so it cheats a bit when rendering this reply within Cni::load() and adds the runtime-requested version number to the supported_versions field when it is semver-compatible.

Fields

cni_version: Version

The CNI version of the plugin input config.

supported_versions: Vec<Version>

The versions this plugin supports.

Trait Implementations

impl Clone for VersionReply[src]

impl Debug for VersionReply[src]

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

impl<'de> ReplyPayload<'de> for VersionReply[src]

impl Serialize for VersionReply[src]

Auto Trait Implementations

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.