pub struct Product {
pub bin: &'static str,
pub repo: &'static str,
pub version: &'static str,
pub build_sha: Option<&'static str>,
pub release_asset: Option<&'static str>,
pub nightly: bool,
}Expand description
What a binary says about itself. All fields are compile-time constants.
Fields§
§bin: &'static strExecutable name, e.g. apr.
repo: &'static strowner/name on GitHub.
version: &'static strenv!("CARGO_PKG_VERSION").
build_sha: Option<&'static str>Build commit, when the binary embeds one (#4219).
release_asset: Option<&'static str>Release asset name template over {bin} {tag} {version} {target};
None when releases carry no asset for this bin.
nightly: boolWhether the repo’s nightly release carries an #4189 manifest.
Trait Implementations§
impl Copy for Product
impl Eq for Product
impl StructuralPartialEq for Product
Auto Trait Implementations§
impl Freeze for Product
impl RefUnwindSafe for Product
impl Send for Product
impl Sync for Product
impl Unpin for Product
impl UnsafeUnpin for Product
impl UnwindSafe for Product
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