pub struct CommunityMetadata {
pub name: String,
pub relays: Vec<String>,
pub description: Option<String>,
pub icon: Option<CommunityImage>,
pub banner: Option<CommunityImage>,
pub owner_attestation: Option<String>,
}Expand description
Community-level descriptor (the “GroupRoot” entity).
Fields§
§name: String§relays: Vec<String>Preferred relay set — also bootstrapped via the invite.
description: Option<String>Short description / topic. serde(default) so older roots stay readable.
icon: Option<CommunityImage>Logo (encrypted blob ref — key rides in this ServerRoot-sealed content).
Banner (encrypted blob ref).
owner_attestation: Option<String>Owner attestation (signed event JSON) — lets members verify who the owner is via the
GroupRoot too (the invite bundle is the other carrier). serde(default) for old roots.
Implementations§
Trait Implementations§
Source§impl Clone for CommunityMetadata
impl Clone for CommunityMetadata
Source§fn clone(&self) -> CommunityMetadata
fn clone(&self) -> CommunityMetadata
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 CommunityMetadata
impl Debug for CommunityMetadata
Source§impl<'de> Deserialize<'de> for CommunityMetadata
impl<'de> Deserialize<'de> for CommunityMetadata
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
impl Eq for CommunityMetadata
Source§impl PartialEq for CommunityMetadata
impl PartialEq for CommunityMetadata
Source§impl Serialize for CommunityMetadata
impl Serialize for CommunityMetadata
impl StructuralPartialEq for CommunityMetadata
Auto Trait Implementations§
impl Freeze for CommunityMetadata
impl RefUnwindSafe for CommunityMetadata
impl Send for CommunityMetadata
impl Sync for CommunityMetadata
impl Unpin for CommunityMetadata
impl UnsafeUnpin for CommunityMetadata
impl UnwindSafe for CommunityMetadata
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more