[−][src]Struct oceanpkg::drop::manifest::DepInfo
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]
fn deserialize<D>(de: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Eq for DepInfo
[src]
impl From<String> for DepInfo
[src]
impl Hash for DepInfo
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<DepInfo> for DepInfo
[src]
impl Serialize for DepInfo
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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]
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: Deserialize<'de>,
[src]
T: 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 = !
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>,