#[non_exhaustive]pub enum Protocol {
ActivityPub,
Buddycloud,
Dfrn,
Diaspora,
Libertree,
OStatus,
PumpIo,
Tent,
Xmpp,
Zot,
Other(String),
}Expand description
A federation protocol supported by a NodeInfo-described server.
The ten named variants are the exact protocols enumeration of the
NodeInfo 2.1 schema; unknown values (including community
extensions such as matrix or bluesky used by bridges) round-trip
losslessly through Self::Other.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ActivityPub
The W3C ActivityPub protocol.
Buddycloud
Buddycloud federation.
Dfrn
Distributed Friendika Network.
Diaspora
Diaspora.
Libertree
Libertree.
OStatus
OStatus (legacy).
PumpIo
Pump.io.
Tent
Tent.
Xmpp
XMPP with pub-sub.
Zot
Zot.
Other(String)
An unrecognised protocol identifier, preserved verbatim.
Common non-schema values seen in the wild include matrix,
bluesky, gnusocial, and nostr. All are preserved through this
fallback variant.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Protocol
impl<'de> Deserialize<'de> for Protocol
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 Protocol
impl StructuralPartialEq for Protocol
Auto Trait Implementations§
impl Freeze for Protocol
impl RefUnwindSafe for Protocol
impl Send for Protocol
impl Sync for Protocol
impl Unpin for Protocol
impl UnsafeUnpin for Protocol
impl UnwindSafe for Protocol
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<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.