Struct mutiny_core::nodemanager::MutinyPeer
source · pub struct MutinyPeer {
pub pubkey: PublicKey,
pub connection_string: Option<String>,
pub alias: Option<String>,
pub color: Option<String>,
pub label: Option<String>,
pub is_connected: bool,
}Fields§
§pubkey: PublicKey§connection_string: Option<String>§alias: Option<String>§color: Option<String>§label: Option<String>§is_connected: boolTrait Implementations§
source§impl Clone for MutinyPeer
impl Clone for MutinyPeer
source§fn clone(&self) -> MutinyPeer
fn clone(&self) -> MutinyPeer
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<'de> Deserialize<'de> for MutinyPeer
impl<'de> Deserialize<'de> for MutinyPeer
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 Ord for MutinyPeer
impl Ord for MutinyPeer
source§impl PartialEq<MutinyPeer> for MutinyPeer
impl PartialEq<MutinyPeer> for MutinyPeer
source§fn eq(&self, other: &MutinyPeer) -> bool
fn eq(&self, other: &MutinyPeer) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<MutinyPeer> for MutinyPeer
impl PartialOrd<MutinyPeer> for MutinyPeer
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for MutinyPeer
impl Serialize for MutinyPeer
impl Eq for MutinyPeer
impl StructuralEq for MutinyPeer
impl StructuralPartialEq for MutinyPeer
Auto Trait Implementations§
impl RefUnwindSafe for MutinyPeer
impl Send for MutinyPeer
impl Sync for MutinyPeer
impl Unpin for MutinyPeer
impl UnwindSafe for MutinyPeer
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.