Struct readme_sync::ManifestPackage[][src]

pub struct ManifestPackage {
    pub name: String,
    pub version: String,
    pub documentation: Option<String>,
    pub readme: Option<ManifestReadmePath>,
    pub repository: Option<String>,
}
Expand description

Package manifest [package] section.

See https://doc.rust-lang.org/cargo/reference/manifest.html#the-package-section for more details.

Fields

name: String

The package name that is used to locate main binary, add package title, disallow package docs links, use absolute package docs links.

version: String

The package version that is not used by current library but defined as a required by Cargo.

documentation: Option<String>

The documentation field specifies a URL to a website hosting the crate’s documentation.

readme: Option<ManifestReadmePath>

The readme field specifies a path to a readme file in the package root (relative to this Cargo.toml).

repository: Option<String>

The repository field specifies a URL to the source repository for the package.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.