pub struct CommunityStatus {
pub community_share_id: [u8; 32],
pub joined: bool,
pub membership_proof: Option<Vec<u8>>,
pub name: Option<String>,
}Fields§
§joined: bool§membership_proof: Option<Vec<u8>>Serialized CommunityMembershipToken (CBOR bytes), if the node
holds a cryptographic proof of membership. Absent means
membership is self-asserted (v0.1 default).
name: Option<String>Human-readable community name, if the responding node knows it.
Trait Implementations§
Source§impl Clone for CommunityStatus
impl Clone for CommunityStatus
Source§fn clone(&self) -> CommunityStatus
fn clone(&self) -> CommunityStatus
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 CommunityStatus
impl Debug for CommunityStatus
Source§impl<'de> Deserialize<'de> for CommunityStatus
impl<'de> Deserialize<'de> for CommunityStatus
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 CommunityStatus
impl PartialEq for CommunityStatus
Source§impl Serialize for CommunityStatus
impl Serialize for CommunityStatus
impl Eq for CommunityStatus
impl StructuralPartialEq for CommunityStatus
Auto Trait Implementations§
impl Freeze for CommunityStatus
impl RefUnwindSafe for CommunityStatus
impl Send for CommunityStatus
impl Sync for CommunityStatus
impl Unpin for CommunityStatus
impl UnsafeUnpin for CommunityStatus
impl UnwindSafe for CommunityStatus
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