pub struct BuildIdentity { /* private fields */ }Expand description
Registered build and platform identities shared by both diagnostics profiles. Values must be product/build identifiers, never user-configured names.
Implementations§
Source§impl BuildIdentity
impl BuildIdentity
pub fn new( product_id: impl Into<String>, app_version: impl Into<String>, ) -> Self
pub fn with_build( self, channel: impl Into<String>, commit: impl Into<String>, ) -> Self
pub fn with_platform( self, os: impl Into<String>, architecture: impl Into<String>, ) -> Self
pub fn product_id(&self) -> &str
pub fn app_version(&self) -> &str
pub fn channel(&self) -> Option<&str>
pub fn commit(&self) -> Option<&str>
pub fn os(&self) -> Option<&str>
pub fn architecture(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for BuildIdentity
impl Clone for BuildIdentity
Source§impl Debug for BuildIdentity
impl Debug for BuildIdentity
Source§impl From<BuildIdentity> for IssueDiagnostics
impl From<BuildIdentity> for IssueDiagnostics
Source§fn from(identity: BuildIdentity) -> Self
fn from(identity: BuildIdentity) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for BuildIdentity
impl Freeze for BuildIdentity
impl Move for BuildIdentity
impl RefUnwindSafe for BuildIdentity
impl Send for BuildIdentitywhere
RawVecInner: Send,
impl Sync for BuildIdentitywhere
RawVecInner: Sync,
impl Unpin for BuildIdentity
impl UnsafeUnpin for BuildIdentity
impl UnwindSafe for BuildIdentitywhere
RawVecInner: UnwindSafe,
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