pub struct ProgramMetadata {
pub package: Cow<'static, str>,
pub binary: Cow<'static, str>,
pub version: Cow<'static, str>,
pub repository: Cow<'static, str>,
pub authors: Cow<'static, str>,
}Expand description
Metadata about the program to be printed in the crash report.
Typically sourced from Cargo.toml using the CARGO_PKG_* environment variables.
Use cargo_metadata!() to create a ProgramMetadata filled with values from Cargo.toml.
Fields§
§package: Cow<'static, str>§binary: Cow<'static, str>§version: Cow<'static, str>§repository: Cow<'static, str>Implementations§
Source§impl ProgramMetadata
impl ProgramMetadata
Sourcepub fn capitalized(self) -> Self
pub fn capitalized(self) -> Self
Capitalizes the first letter of the package name.
§Example
use crashlog::cargo_metadata;
crashlog::setup!(cargo_metadata!(default = "").capitalized(), false);Trait Implementations§
Source§impl Clone for ProgramMetadata
impl Clone for ProgramMetadata
Source§fn clone(&self) -> ProgramMetadata
fn clone(&self) -> ProgramMetadata
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for ProgramMetadata
impl RefUnwindSafe for ProgramMetadata
impl Send for ProgramMetadata
impl Sync for ProgramMetadata
impl Unpin for ProgramMetadata
impl UnwindSafe for ProgramMetadata
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