Struct primitives::validator::messages::Heartbeat
source · pub struct Heartbeat {
pub signature: String,
pub state_root: String,
pub timestamp: DateTime<Utc>,
}
Expand description
Fields
signature: String
state_root: String
timestamp: DateTime<Utc>
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Heartbeat
impl<'de> Deserialize<'de> for Heartbeat
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<Heartbeat> for MessageTypes
impl From<Heartbeat> for MessageTypes
sourceimpl TryFrom<MessageTypes> for Heartbeat
impl TryFrom<MessageTypes> for Heartbeat
type Error = MessageError<Heartbeat>
type Error = MessageError<Heartbeat>
The type returned in the event of a conversion error.
sourcefn try_from(value: MessageTypes) -> Result<Self, Self::Error>
fn try_from(value: MessageTypes) -> Result<Self, Self::Error>
Performs the conversion.
impl Eq for Heartbeat
impl StructuralEq for Heartbeat
impl StructuralPartialEq for Heartbeat
impl Type for Heartbeat
Auto Trait Implementations
impl RefUnwindSafe for Heartbeat
impl Send for Heartbeat
impl Sync for Heartbeat
impl Unpin for Heartbeat
impl UnwindSafe for Heartbeat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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