pub struct PeerEndpoint {
pub peer_id: String,
pub endpoint: String,
pub public_key: Option<String>,
}Expand description
A peer endpoint in the network
Fields§
§peer_id: StringUnique identifier for the peer
endpoint: StringHTTP endpoint for the peer
public_key: Option<String>Optional public key for authentication
Trait Implementations§
Source§impl Clone for PeerEndpoint
impl Clone for PeerEndpoint
Source§fn clone(&self) -> PeerEndpoint
fn clone(&self) -> PeerEndpoint
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 PeerEndpoint
impl Debug for PeerEndpoint
Source§impl<'de> Deserialize<'de> for PeerEndpoint
impl<'de> Deserialize<'de> for PeerEndpoint
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
Auto Trait Implementations§
impl Freeze for PeerEndpoint
impl RefUnwindSafe for PeerEndpoint
impl Send for PeerEndpoint
impl Sync for PeerEndpoint
impl Unpin for PeerEndpoint
impl UnsafeUnpin for PeerEndpoint
impl UnwindSafe for PeerEndpoint
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