pub struct Policy<'a> {
pub wanted: &'a [Oid<'a>],
pub explicit: bool,
pub mapping: bool,
pub any: bool,
}Expand description
What the caller was asking about, before any certificate was read.
The defaults are a validator with no policy of its own: it asks what the authorities agreed on rather than whether they agreed on one thing, and reads what the certificates say rather than overriding it. A caller with a policy of its own says so here, and gets paths that satisfy it or none.
Fields§
§wanted: &'a [Oid<'a>]The policies the caller is asking about. Empty asks about all of them, and a path then carries whatever its authorities agreed on.
explicit: boolWhether every path must name a policy, rather than only those an authority along the way demanded it of.
mapping: boolWhether a policy one authority maps to another’s is honoured.
any: boolWhether the identifier standing for any policy is read as the certificate meant it.
Trait Implementations§
impl<'a> Copy for Policy<'a>
Auto Trait Implementations§
impl<'a> Freeze for Policy<'a>
impl<'a> RefUnwindSafe for Policy<'a>
impl<'a> Send for Policy<'a>
impl<'a> Sync for Policy<'a>
impl<'a> Unpin for Policy<'a>
impl<'a> UnsafeUnpin for Policy<'a>
impl<'a> UnwindSafe for Policy<'a>
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