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§
§pkg_name: Txt
package.name
package.authors
crate_name: Txt
package.name in snake_case
version: Version
package.version
app: Txt
package.metadata.zng.about.app or pkg_name
org: Txt
package.metadata.zng.about.org or the first pkg_authors
qualifier: Txt
package.metadata.zng.about.qualifier
Reverse domain name notation, excluding the name of the application.
description: Txt
package.description
homepage: Txt
package.homepage
license: Txt
package.license
has_about: bool
If 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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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
Compare self to
key
and return true
if they are equal.§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