[][src]Struct oceanpkg::drop::manifest::DepInfo

pub struct DepInfo {
    pub version: String,
    pub optional: bool,
    pub git: Option<Git>,
}

The value associated with an element listed in the dependencies key in the manifest.

This is defined as an enum to allow for flexibility in parsing. Either a simple string will be parsed, in which case it's a version number (Version), or a list of key/value pairs will be parsed (Detailed).

In the future, this should be defined as a struct to ease usage in Rust while retaining flexibility in parsing.

Fields

version: String

The version requirement string, e.g. ^1.0.0.

optional: bool

Whether the dependency is optional. The default is false.

git: Option<Git>

What git repository can it be fetched from if requested via git as an alternative source. Note that this may differ from the dependency's own git field in its drop manifest.

Trait Implementations

impl Clone for DepInfo[src]

impl Debug for DepInfo[src]

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

impl Eq for DepInfo[src]

impl From<String> for DepInfo[src]

impl Hash for DepInfo[src]

impl PartialEq<DepInfo> for DepInfo[src]

impl Serialize for DepInfo[src]

impl StructuralEq for DepInfo[src]

impl StructuralPartialEq for DepInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for DepInfo

impl Send for DepInfo

impl Sync for DepInfo

impl Unpin for DepInfo

impl UnwindSafe for DepInfo

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: 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 = !

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.