#[non_exhaustive]pub struct About {
pub pkg_name: Txt,
pub pkg_authors: Box<[Txt]>,
pub crate_name: Txt,
pub version: Version,
pub app: Txt,
pub org: Txt,
pub qualifier: Txt,
pub description: Txt,
pub homepage: Txt,
pub license: Txt,
pub has_about: bool,
}Expand description
Metadata about the app and main crate.
See about for more details.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pkg_name: Txtpackage.name
package.authors
crate_name: Txtpackage.name in snake_case
version: Versionpackage.version
app: Txtpackage.metadata.zng.about.app or pkg_name
org: Txtpackage.metadata.zng.about.org or the first pkg_authors
qualifier: Txtpackage.metadata.zng.about.qualifier
Reverse domain name notation, excluding the name of the application.
description: Txtpackage.description
homepage: Txtpackage.homepage
license: Txtpackage.license
has_about: boolIf package.metadata.zng.about is set on the Cargo.toml manifest.
The presence of this section is used by cargo zng res to find the main
crate if the workspace has multiple bin crates.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for About
impl<'de> Deserialize<'de> for About
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
impl Eq for About
impl StructuralPartialEq for About
Auto Trait Implementations§
impl Freeze for About
impl RefUnwindSafe for About
impl Send for About
impl Sync for About
impl Unpin for About
impl UnwindSafe for About
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more