Struct DiagnosticContext
pub struct DiagnosticContext<'a> {
pub source: Option<DiagnosticSource<'a>>,
pub operation: Option<&'a str>,
pub help: Option<&'a str>,
}Expand description
Optional bounded context. None and Some("") remain distinct in the export.
Borrowed strings are copied into the collector only for a new retained record.
Fields§
§source: Option<DiagnosticSource<'a>>§operation: Option<&'a str>The operation that failed, at most 128 UTF-8 bytes.
help: Option<&'a str>An actionable remedy, at most 1024 UTF-8 bytes.
Trait Implementations§
§impl<'a> Clone for DiagnosticContext<'a>
impl<'a> Clone for DiagnosticContext<'a>
§fn clone(&self) -> DiagnosticContext<'a>
fn clone(&self) -> DiagnosticContext<'a>
Returns a duplicate 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 more§impl<'a> Debug for DiagnosticContext<'a>
impl<'a> Debug for DiagnosticContext<'a>
§impl<'a> Default for DiagnosticContext<'a>
impl<'a> Default for DiagnosticContext<'a>
§fn default() -> DiagnosticContext<'a>
fn default() -> DiagnosticContext<'a>
Returns the “default value” for a type. Read more
§impl<'a> PartialEq for DiagnosticContext<'a>
impl<'a> PartialEq for DiagnosticContext<'a>
impl<'a> Copy for DiagnosticContext<'a>
impl<'a> Eq for DiagnosticContext<'a>
impl<'a> StructuralPartialEq for DiagnosticContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for DiagnosticContext<'a>
impl<'a> RefUnwindSafe for DiagnosticContext<'a>
impl<'a> Send for DiagnosticContext<'a>
impl<'a> Sync for DiagnosticContext<'a>
impl<'a> Unpin for DiagnosticContext<'a>
impl<'a> UnwindSafe for DiagnosticContext<'a>
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