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)
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§
Source§impl Clone for ManifestReadmePath
impl Clone for ManifestReadmePath
Source§fn clone(&self) -> ManifestReadmePath
fn clone(&self) -> ManifestReadmePath
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ManifestReadmePath
impl Debug for ManifestReadmePath
Source§impl<'de> Deserialize<'de> for ManifestReadmePath
impl<'de> Deserialize<'de> for ManifestReadmePath
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 PartialEq for ManifestReadmePath
impl PartialEq for ManifestReadmePath
impl Eq for ManifestReadmePath
impl StructuralPartialEq for ManifestReadmePath
Auto Trait Implementations§
impl Freeze for ManifestReadmePath
impl RefUnwindSafe for ManifestReadmePath
impl Send for ManifestReadmePath
impl Sync for ManifestReadmePath
impl Unpin for ManifestReadmePath
impl UnwindSafe for ManifestReadmePath
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.