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

pub struct Meta {
    pub name: String,
    pub display_name: Option<String>,
    pub description: String,
    pub exe_path: Option<String>,
    pub license: Option<String>,
    pub authors: Option<Vec<String>>,
    pub readme: Option<String>,
    pub changelog: Option<String>,
    pub homepage: Option<String>,
    pub documentation: Option<String>,
    pub version: SemVer,
    pub git: Option<Git>,
    pub conflicts: Option<BTreeMap<String, String>>,
}

The value for the meta key in the drop manifest.

Fields

name: String

The drop's name.

display_name: Option<String>

The pretty name displayed when viewing a drop.

description: String

What is this drop?

exe_path: Option<String>

The path of the executable. name is used if None.

license: Option<String>

The licenses used.

This can be a single license or multiple delimited by "AND" or "OR".

authors: Option<Vec<String>>

Authors of the drop.

readme: Option<String>

A path to the package's "README" file.

changelog: Option<String>

A path to the package's change log file.

homepage: Option<String>

This drop's corner of the internet.

documentation: Option<String>

The URL where docs live.

version: SemVer

The drop version.

git: Option<Git>

The git repository where this drop can be fetched from.

Repository info is taKen from here.

conflicts: Option<BTreeMap<String, String>>

The versions that this version conflicts with.

Methods

impl Meta[src]

pub fn exe_path(&self) -> &str[src]

Returns the path where the executable is expected to be.

Trait Implementations

impl Clone for Meta[src]

impl Debug for Meta[src]

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

impl Eq for Meta[src]

impl Hash for Meta[src]

impl PartialEq<Meta> for Meta[src]

impl Serialize for Meta[src]

impl StructuralEq for Meta[src]

impl StructuralPartialEq for Meta[src]

Auto Trait Implementations

impl RefUnwindSafe for Meta

impl Send for Meta

impl Sync for Meta

impl Unpin for Meta

impl UnwindSafe for Meta

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.