#[non_exhaustive]pub enum Hosting {
Embedded,
Web,
Registry,
}Expand description
Where the documents of a DID method live, which decides what creating one involves.
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.
Embedded
The document is derived from the DID itself (did:key, did:jwk): nothing is published.
Web
The document is served over HTTPS by its controller (did:web).
Registry
The document is written to a verifiable data registry (a ledger, a directory).
Implementations§
Trait Implementations§
impl Copy for Hosting
impl Eq for Hosting
impl StructuralPartialEq for Hosting
Auto Trait Implementations§
impl Freeze for Hosting
impl RefUnwindSafe for Hosting
impl Send for Hosting
impl Sync for Hosting
impl Unpin for Hosting
impl UnsafeUnpin for Hosting
impl UnwindSafe for Hosting
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.