pub struct InitMessageBody {
pub node_id: String,
pub nodes: Vec<String>,
}Expand description
InitMessageBody represents the message body for the “init” message.
Fields§
§node_id: StringNode id.
nodes: Vec<String>Neighbours.
Trait Implementations§
Source§impl Clone for InitMessageBody
impl Clone for InitMessageBody
Source§fn clone(&self) -> InitMessageBody
fn clone(&self) -> InitMessageBody
Returns a duplicate 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 InitMessageBody
impl Debug for InitMessageBody
Source§impl Default for InitMessageBody
impl Default for InitMessageBody
Source§fn default() -> InitMessageBody
fn default() -> InitMessageBody
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InitMessageBody
impl<'de> Deserialize<'de> for InitMessageBody
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 PartialEq for InitMessageBody
impl PartialEq for InitMessageBody
Source§impl Serialize for InitMessageBody
impl Serialize for InitMessageBody
impl Eq for InitMessageBody
impl StructuralPartialEq for InitMessageBody
Auto Trait Implementations§
impl Freeze for InitMessageBody
impl RefUnwindSafe for InitMessageBody
impl Send for InitMessageBody
impl Sync for InitMessageBody
impl Unpin for InitMessageBody
impl UnwindSafe for InitMessageBody
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