logo
pub struct Message<'a> {
    pub severity: MessageSeverity,
    pub ty: MessageType,
    pub layer_prefix: Option<&'a str>,
    pub description: &'a str,
}
Expand description

A message received by the callback.

Fields

severity: MessageSeverity

Severity of message.

ty: MessageType

Type of message,

layer_prefix: Option<&'a str>

Prefix of the layer that reported this message or None if unknown.

description: &'a str

Description of the message.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.