Struct ckb_jsonrpc_types::AlertMessage
source · 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§
source§impl Clone for AlertMessage
impl Clone for AlertMessage
source§fn clone(&self) -> AlertMessage
fn clone(&self) -> AlertMessage
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 moresource§impl Debug for AlertMessage
impl Debug for AlertMessage
source§impl Default for AlertMessage
impl Default for AlertMessage
source§fn default() -> AlertMessage
fn default() -> AlertMessage
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AlertMessage
impl<'de> Deserialize<'de> for AlertMessage
source§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
source§impl From<Alert> for AlertMessage
impl From<Alert> for AlertMessage
source§impl Hash for AlertMessage
impl Hash for AlertMessage
source§impl PartialEq<AlertMessage> for AlertMessage
impl PartialEq<AlertMessage> for AlertMessage
source§fn eq(&self, other: &AlertMessage) -> bool
fn eq(&self, other: &AlertMessage) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for AlertMessage
impl Serialize for AlertMessage
impl Eq for AlertMessage
impl StructuralEq for AlertMessage
impl StructuralPartialEq for AlertMessage
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§
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