Struct oro_common::Manifest

source ·
pub struct Manifest {
Show 32 fields pub name: Option<String>, pub version: Option<Version>, pub description: Option<String>, pub homepage: Option<String>, pub license: Option<String>, pub bugs: Option<Bugs>, pub keywords: Vec<String>, pub bin: Option<Bin>, pub author: Option<PersonField>, pub contributors: Vec<PersonField>, pub files: Option<Vec<String>>, pub main: Option<String>, pub man: Option<Man>, pub directories: Option<Directories>, pub module_type: Option<String>, pub exports: Option<Exports>, pub imports: Option<Imports>, pub repository: Option<Repository>, pub scripts: HashMap<String, String>, pub config: Option<Value>, pub engines: HashMap<String, Range>, pub os: Vec<String>, pub cpu: Vec<String>, pub private: Option<bool>, pub publish_config: HashMap<String, Value>, pub dependencies: IndexMap<String, String>, pub dev_dependencies: IndexMap<String, String>, pub optional_dependencies: IndexMap<String, String>, pub peer_dependencies: IndexMap<String, String>, pub bundled_dependencies: Vec<String>, pub workspaces: Vec<String>, pub _rest: HashMap<String, Value>,
}

Fields§

§name: Option<String>

The name of the package.

If this is missing, it usually indicates that this package exists only to describe a workspace, similar to Cargo’s notion of a “virtual manifest”.

§version: Option<Version>

The version of the package.

Package managers generally require this to be populated to actually publish the package, but will tolerate its absence during local development.

§description: Option<String>§homepage: Option<String>§license: Option<String>§bugs: Option<Bugs>§keywords: Vec<String>§bin: Option<Bin>

Information about the names and locations of binaries this package provides.

Use crate::BuildManifest::from_manifest to get a normalized version of this field (and other related fields).

§author: Option<PersonField>§contributors: Vec<PersonField>§files: Option<Vec<String>>§main: Option<String>§man: Option<Man>§directories: Option<Directories>§module_type: Option<String>§exports: Option<Exports>§imports: Option<Imports>§repository: Option<Repository>

Information about the repository this project is hosted in.

Repository::Str can contain many different formats (or plain garbage), we recommend trying to .parse() it as oro-package-spec’s GitInfo type, as it understands most of the relevant formats.

§scripts: HashMap<String, String>

Information about build scripts the package uses.

Use crate::BuildManifest::from_manifest to get a normalized version of this field (and other related fields).

§config: Option<Value>§engines: HashMap<String, Range>§os: Vec<String>§cpu: Vec<String>§private: Option<bool>§publish_config: HashMap<String, Value>§dependencies: IndexMap<String, String>§dev_dependencies: IndexMap<String, String>§optional_dependencies: IndexMap<String, String>§peer_dependencies: IndexMap<String, String>§bundled_dependencies: Vec<String>§workspaces: Vec<String>§_rest: HashMap<String, Value>

Trait Implementations§

source§

impl Clone for Manifest

source§

fn clone(&self) -> Manifest

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Manifest

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Manifest

source§

fn default() -> Manifest

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Manifest

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<CorgiManifest> for Manifest

source§

fn from(value: CorgiManifest) -> Self

Converts to this type from the input type.
source§

impl From<Manifest> for CorgiManifest

source§

fn from(value: Manifest) -> Self

Converts to this type from the input type.
source§

impl From<Manifest> for VersionMetadata

source§

fn from(value: Manifest) -> Self

Converts to this type from the input type.
source§

impl From<VersionMetadata> for Manifest

source§

fn from(value: VersionMetadata) -> Self

Converts to this type from the input type.
source§

impl PartialEq<Manifest> for Manifest

source§

fn eq(&self, other: &Manifest) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for Manifest

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for Manifest

source§

impl StructuralEq for Manifest

source§

impl StructuralPartialEq for Manifest

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,