Enum readme_sync::ManifestReadmePath[][src]

pub enum ManifestReadmePath {
    Path(PathBuf),
    Bool(bool),
}
Expand description

The optional Manifest readme field that allows string or boolean value.

If readme field is not specified, and a file named README.md, README.txt or README exists in the package root, then the name of that file will be used.

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

Variants

Path(PathBuf)

Tuple Fields

Readme path.

Bool(bool)

Tuple Fields

0: bool

If the field is set to true, a default value of README.md will be assumed. If the field is set to false, a readme file is defined as absent.

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

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.