[−][src]Enum osproto::common::Root
A result of a version discovery endpoint.
Variants
Multiple major versions.
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]
Notable traits for IntoStableIter
impl Iterator for IntoStableIter type Item = Version;
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,