pub struct PeerContents {
pub name: Hostname,
pub ip: IpAddr,
pub cidr_id: i64,
pub public_key: String,
pub endpoint: Option<Endpoint>,
pub persistent_keepalive_interval: Option<u16>,
pub is_admin: bool,
pub is_disabled: bool,
pub is_redeemed: bool,
pub invite_expires: Option<SystemTime>,
pub candidates: Vec<Endpoint>,
}Fields§
§name: Hostname§ip: IpAddr§cidr_id: i64§public_key: String§endpoint: Option<Endpoint>§persistent_keepalive_interval: Option<u16>§is_admin: bool§is_disabled: bool§is_redeemed: bool§invite_expires: Option<SystemTime>§candidates: Vec<Endpoint>Trait Implementations§
Source§impl Clone for PeerContents
impl Clone for PeerContents
Source§fn clone(&self) -> PeerContents
fn clone(&self) -> PeerContents
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 PeerContents
impl Debug for PeerContents
Source§impl<'de> Deserialize<'de> for PeerContents
impl<'de> Deserialize<'de> for PeerContents
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 PeerContents
impl PartialEq for PeerContents
Source§impl Serialize for PeerContents
impl Serialize for PeerContents
impl Eq for PeerContents
impl StructuralPartialEq for PeerContents
Auto Trait Implementations§
impl Freeze for PeerContents
impl RefUnwindSafe for PeerContents
impl Send for PeerContents
impl Sync for PeerContents
impl Unpin for PeerContents
impl UnwindSafe for PeerContents
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.