pub struct DiagnosisMessage {
pub code: u16,
pub message: String,
pub parts: Vec<MessagePart>,
pub severity: Severity,
pub created_at_ms: i64,
/* private fields */
}Expand description
A diagnostic message with a numeric code and optional auto-timeout.
Fields§
§code: u16§message: StringPlain text: the fallback for UIs without the keys, and the text for logs and the fleet heartbeat.
parts: Vec<MessagePart>Translatable form of message; empty for an unkeyed message.
severity: Severity§created_at_ms: i64Trait Implementations§
Source§impl Clone for DiagnosisMessage
impl Clone for DiagnosisMessage
Source§fn clone(&self) -> DiagnosisMessage
fn clone(&self) -> DiagnosisMessage
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 DiagnosisMessage
impl RefUnwindSafe for DiagnosisMessage
impl Send for DiagnosisMessage
impl Sync for DiagnosisMessage
impl Unpin for DiagnosisMessage
impl UnwindSafe for DiagnosisMessage
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