[][src]Enum osproto::common::Root

pub enum Root {
    MultipleVersions {
        versions: Vec<Version>,
    },
    OneVersion {
        version: Version,
    },
}

A result of a version discovery endpoint.

Variants

MultipleVersions

Multiple major versions.

Fields of MultipleVersions

versions: Vec<Version>
OneVersion

Single major version.

Fields of OneVersion

version: Version

Implementations

impl Root[src]

pub fn sort(&mut self)[src]

Sort versions from lowest to highest (using unstable sorting).

pub fn into_sorted(self) -> Self[src]

Create a Root sorted with sort.

pub fn into_stable_iter(self) -> IntoStableIter

Notable traits for IntoStableIter

impl Iterator for IntoStableIter type Item = Version;
[src]

Create an iterator over stable versions.

Trait Implementations

impl Clone for Root[src]

impl Debug for Root[src]

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

Auto Trait Implementations

impl RefUnwindSafe for Root

impl Send for Root

impl Sync for Root

impl Unpin for Root

impl UnwindSafe for Root

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.