pub struct RequestedCertificateSet {
pub certifiers: Vec<String>,
pub types: HashMap<String, Vec<String>>,
}Expand description
A set of certificates being requested from a peer.
Matches the TS SDK’s RequestedCertificateSet wire format:
{ certifiers: string[], types: { [certTypeBase64]: string[] } }
Fields§
§certifiers: Vec<String>Certifier public keys whose certificates are accepted.
types: HashMap<String, Vec<String>>Maps certificate type (base64) to the list of field names to request.
Implementations§
Source§impl RequestedCertificateSet
impl RequestedCertificateSet
Sourcepub fn keys(&self) -> impl Iterator<Item = &String>
pub fn keys(&self) -> impl Iterator<Item = &String>
Iterate over the requested certificate type keys.
Sourcepub fn contains_key(&self, key: &str) -> bool
pub fn contains_key(&self, key: &str) -> bool
Check if a certificate type is in the requested set.
Trait Implementations§
Source§impl Clone for RequestedCertificateSet
impl Clone for RequestedCertificateSet
Source§fn clone(&self) -> RequestedCertificateSet
fn clone(&self) -> RequestedCertificateSet
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RequestedCertificateSet
impl Debug for RequestedCertificateSet
Source§impl Default for RequestedCertificateSet
impl Default for RequestedCertificateSet
Source§fn default() -> RequestedCertificateSet
fn default() -> RequestedCertificateSet
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RequestedCertificateSet
impl RefUnwindSafe for RequestedCertificateSet
impl Send for RequestedCertificateSet
impl Sync for RequestedCertificateSet
impl Unpin for RequestedCertificateSet
impl UnsafeUnpin for RequestedCertificateSet
impl UnwindSafe for RequestedCertificateSet
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