pub struct CommunityMetadata {
pub name: String,
pub description: Option<String>,
pub relays: Vec<String>,
pub icon: Option<ImageRef>,
pub banner: Option<ImageRef>,
pub custom: Option<Map<String, Value>>,
pub extra: Map<String, Value>,
}Expand description
Community metadata — the vsk-0 entity content (CORD-02 §6). eid = the
community_id itself; gated by MANAGE_METADATA.
Fields§
§name: String§description: Option<String>§relays: Vec<String>§icon: Option<ImageRef>§custom: Option<Map<String, Value>>Client-extensible opaque object; folds atomically with the entity.
extra: Map<String, Value>Reserved-for-protocol unknown top-level fields, round-tripped verbatim.
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 Default for CommunityMetadata
impl Default for CommunityMetadata
Source§fn default() -> CommunityMetadata
fn default() -> CommunityMetadata
Returns the “default value” for a type. Read more
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
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<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