pub struct BasicInfo<UrlT = Url> {
pub handles: Handles,
pub name: String,
pub description: String,
pub url: UrlT,
pub id: Id,
}Expand description
Basic public details about hub, as provided by PubHubs Central.
Fields§
§handles: HandlesThe handles for this hub, using in URLs and other places to be understood by both human and machine. The first one is the one that’s used by default. WARNING: Handles may be added, but should not be removed.
name: StringHuman-readable short name for this hub
description: StringShort description for this hub. This is stored centrally to facilitate searching. May be changed freely.
url: UrlTHub client API url, likely of the form https://<some domain>/_synapse/client/.
Must end with a /. Can be changed freely.
id: IdImmutable and unique identifier
Trait Implementations§
Source§impl<'de, UrlT> Deserialize<'de> for BasicInfo<UrlT>where
UrlT: Deserialize<'de>,
impl<'de, UrlT> Deserialize<'de> for BasicInfo<UrlT>where
UrlT: Deserialize<'de>,
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 PrepareConfig<Rc<Extensions>> for BasicInfo<UrlPwa>
impl PrepareConfig<Rc<Extensions>> for BasicInfo<UrlPwa>
impl<UrlT: Eq> Eq for BasicInfo<UrlT>
impl<UrlT> StructuralPartialEq for BasicInfo<UrlT>
Auto Trait Implementations§
impl<UrlT> Freeze for BasicInfo<UrlT>where
UrlT: Freeze,
impl<UrlT> RefUnwindSafe for BasicInfo<UrlT>where
UrlT: RefUnwindSafe,
impl<UrlT> Send for BasicInfo<UrlT>where
UrlT: Send,
impl<UrlT> Sync for BasicInfo<UrlT>where
UrlT: Sync,
impl<UrlT> Unpin for BasicInfo<UrlT>where
UrlT: Unpin,
impl<UrlT> UnsafeUnpin for BasicInfo<UrlT>where
UrlT: UnsafeUnpin,
impl<UrlT> UnwindSafe for BasicInfo<UrlT>where
UrlT: UnwindSafe,
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.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