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
sourceimpl Clone for AlertMessage
impl Clone for AlertMessage
sourcefn clone(&self) -> AlertMessage
fn clone(&self) -> AlertMessage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AlertMessage
impl Debug for AlertMessage
sourceimpl Default for AlertMessage
impl Default for AlertMessage
sourcefn default() -> AlertMessage
fn default() -> AlertMessage
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for AlertMessage
impl<'de> Deserialize<'de> for AlertMessage
sourcefn 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
sourceimpl From<Alert> for AlertMessage
impl From<Alert> for AlertMessage
sourceimpl Hash for AlertMessage
impl Hash for AlertMessage
sourceimpl PartialEq<AlertMessage> for AlertMessage
impl PartialEq<AlertMessage> for AlertMessage
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &AlertMessage) -> bool
fn ne(&self, other: &AlertMessage) -> bool
This method tests for !=.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more