pub struct Diagnostics { /* private fields */ }Expand description
Issue-only allowlist. Paths require a separately sanitized, explicit opt-in projection; this type cannot receive local errors, logs or runtime state.
Implementations§
Source§impl IssueDiagnostics
impl IssueDiagnostics
pub fn new( product_id: impl Into<String>, app_version: impl Into<String>, ) -> IssueDiagnostics
pub fn with_build( self, channel: impl Into<String>, commit: impl Into<String>, ) -> IssueDiagnostics
pub fn with_platform( self, os: impl Into<String>, architecture: impl Into<String>, ) -> IssueDiagnostics
pub fn with_active_board(self, id: impl Into<String>) -> IssueDiagnostics
pub fn with_appearance( self, theme_id: impl Into<String>, icon_size: impl Into<String>, ) -> IssueDiagnostics
pub fn with_paths(self, paths: IssuePaths) -> IssueDiagnostics
pub fn without_paths(self) -> IssueDiagnostics
pub fn paths(&self) -> Option<&IssuePaths>
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>
pub fn active_board(&self) -> Option<&str>
pub fn theme_id(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for IssueDiagnostics
impl Clone for IssueDiagnostics
Source§fn clone(&self) -> IssueDiagnostics
fn clone(&self) -> IssueDiagnostics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IssueDiagnostics
impl Debug for IssueDiagnostics
Source§impl From<BuildIdentity> for IssueDiagnostics
impl From<BuildIdentity> for IssueDiagnostics
Source§fn from(identity: BuildIdentity) -> IssueDiagnostics
fn from(identity: BuildIdentity) -> IssueDiagnostics
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for IssueDiagnostics
impl Freeze for IssueDiagnostics
impl Move for IssueDiagnostics
impl RefUnwindSafe for IssueDiagnostics
impl Send for IssueDiagnostics
impl Sync for IssueDiagnostics
impl Unpin for IssueDiagnostics
impl UnsafeUnpin for IssueDiagnostics
impl UnwindSafe for IssueDiagnostics
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