pub struct MeshPeersResponse {
pub enabled: bool,
pub reachable: bool,
pub peers: Vec<MeshPeerEntry>,
pub bearer_source: String,
pub note: Option<String>,
}Expand description
The GET /api/mesh/peers response (Contract 6 companion, P7). enabled:false
⇒ empty peers, bearer_source:"none".
Fields§
§enabled: bool§reachable: bool§peers: Vec<MeshPeerEntry>§bearer_source: String"shared-mesh-token" when a candidate bearer is offered, else "none".
note: Option<String>Present only when no bearer is available: names the exact secret to
provision. null when a bearer is offered.
Trait Implementations§
Source§impl Clone for MeshPeersResponse
impl Clone for MeshPeersResponse
Source§fn clone(&self) -> MeshPeersResponse
fn clone(&self) -> MeshPeersResponse
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 MeshPeersResponse
impl Debug for MeshPeersResponse
impl Eq for MeshPeersResponse
Source§impl PartialEq for MeshPeersResponse
impl PartialEq for MeshPeersResponse
Source§impl Serialize for MeshPeersResponse
impl Serialize for MeshPeersResponse
impl StructuralPartialEq for MeshPeersResponse
Auto Trait Implementations§
impl Freeze for MeshPeersResponse
impl RefUnwindSafe for MeshPeersResponse
impl Send for MeshPeersResponse
impl Sync for MeshPeersResponse
impl Unpin for MeshPeersResponse
impl UnsafeUnpin for MeshPeersResponse
impl UnwindSafe for MeshPeersResponse
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