web5_rust::didsTrait DidDocument
Source pub trait DidDocument:
DynClone
+ Debug
+ Sync
+ Send
+ Serialize
+ Deserialize {
// Required methods
fn method(&self) -> DidMethod;
fn id(&self) -> String;
fn keys(&self) -> Vec<&DidKey>;
fn services(&self) -> Vec<&DidService>;
fn get_key(&self, id: &str) -> Option<&DidKey>;
fn get_service(&self, id: &str) -> Option<&DidService>;
fn resolve<'life0, 'async_trait>(
id: &'life0 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Self>, Error>> + Send + 'async_trait>>
where Self: Sized + 'async_trait,
'life0: 'async_trait;
// Provided method
fn did(&self) -> Did { ... }
}
Serialize this value into the given Serde serializer.
Read more
Serialize this value into the given Serde serializer.
Read more
Serialize this value into the given Serde serializer.
Read more
Serialize this value into the given Serde serializer.
Read more