Enum readme_sync::ManifestReadmePath[][src]

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

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)

Readme path.

Bool(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

impl Clone for ManifestReadmePath[src]

impl Debug for ManifestReadmePath[src]

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

impl Eq for ManifestReadmePath[src]

impl PartialEq<ManifestReadmePath> for ManifestReadmePath[src]

impl StructuralEq for ManifestReadmePath[src]

impl StructuralPartialEq for ManifestReadmePath[src]

Auto Trait Implementations

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: for<'de> 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 = Infallible

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.