Trait identity_iota::did::Queryable
source · [−]pub trait Queryable<D, T, Q> {
fn query(&self, query: Q) -> Option<&T>;
fn query_mut(&mut self, query: Q) -> Option<&mut T>;
}
Expand description
Allows retrieving an entry from a collection using a custom query type.
Used for querying verification methods in a DID Document by either its full DID Url identifier
or only its fragment. See DIDUrlQuery
.
Required Methods
Returns a reference to an entry matching the query if one exists.