pub trait Queryable<T, Q> {
// Required methods
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
.