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: AlertId
The unique alert ID.
priority: AlertPriority
Alerts are sorted by priority, highest first.
notice_until: Timestamp
The alert is expired after this timestamp.
message: String
Alert 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
pub fn vzip(self) -> V