pub struct NodeMessagePacket {
pub time: u64,
pub public_key: String,
pub network_id: String,
pub msg_type: NodeMessageType,
pub sign: String,
pub data: String,
}Fields§
§time: u64§public_key: String§network_id: String§msg_type: NodeMessageType§sign: String§data: StringTrait Implementations§
Source§impl Clone for NodeMessagePacket
impl Clone for NodeMessagePacket
Source§fn clone(&self) -> NodeMessagePacket
fn clone(&self) -> NodeMessagePacket
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NodeMessagePacket
impl Debug for NodeMessagePacket
Source§impl<'de> Deserialize<'de> for NodeMessagePacket
impl<'de> Deserialize<'de> for NodeMessagePacket
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
impl Eq for NodeMessagePacket
Source§impl Ord for NodeMessagePacket
impl Ord for NodeMessagePacket
Source§fn cmp(&self, other: &NodeMessagePacket) -> Ordering
fn cmp(&self, other: &NodeMessagePacket) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NodeMessagePacket
impl PartialEq for NodeMessagePacket
Source§fn eq(&self, other: &NodeMessagePacket) -> bool
fn eq(&self, other: &NodeMessagePacket) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for NodeMessagePacket
impl PartialOrd for NodeMessagePacket
Source§impl Serialize for NodeMessagePacket
impl Serialize for NodeMessagePacket
impl StructuralPartialEq for NodeMessagePacket
Auto Trait Implementations§
impl Freeze for NodeMessagePacket
impl RefUnwindSafe for NodeMessagePacket
impl Send for NodeMessagePacket
impl Sync for NodeMessagePacket
impl Unpin for NodeMessagePacket
impl UnsafeUnpin for NodeMessagePacket
impl UnwindSafe for NodeMessagePacket
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