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: StringThe package name that is used to locate main binary, add package title, disallow package docs links, use absolute package docs links.
version: StringThe 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§
Source§impl Clone for ManifestPackage
impl Clone for ManifestPackage
Source§fn clone(&self) -> ManifestPackage
fn clone(&self) -> ManifestPackage
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 ManifestPackage
impl Debug for ManifestPackage
Source§impl<'de> Deserialize<'de> for ManifestPackage
impl<'de> Deserialize<'de> for ManifestPackage
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 ManifestPackage
impl PartialEq for ManifestPackage
impl Eq for ManifestPackage
impl StructuralPartialEq for ManifestPackage
Auto Trait Implementations§
impl Freeze for ManifestPackage
impl RefUnwindSafe for ManifestPackage
impl Send for ManifestPackage
impl Sync for ManifestPackage
impl Unpin for ManifestPackage
impl UnwindSafe for ManifestPackage
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.