Struct ckb_jsonrpc_types::AlertMessage [−][src]
pub struct AlertMessage {
pub id: AlertId,
pub priority: AlertPriority,
pub notice_until: Timestamp,
pub message: String,
}Expand description
An alert sent by RPC send_alert.
Fields
id: AlertIdThe unique alert ID.
priority: AlertPriorityAlerts are sorted by priority, highest first.
notice_until: TimestampThe alert is expired after this timestamp.
message: StringAlert message.
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for AlertMessage
impl Send for AlertMessage
impl Sync for AlertMessage
impl Unpin for AlertMessage
impl UnwindSafe for AlertMessage
Blanket Implementations
Mutably borrows from an owned value. Read more