pub struct CertSpotterPolicy { /* private fields */ }Expand description
Validated local policy for one bounded Cert Spotter query.
Implementations§
Source§impl CertSpotterPolicy
impl CertSpotterPolicy
Sourcepub fn parse_json(bytes: &[u8]) -> Result<Self, ReconCtProviderPolicyError>
pub fn parse_json(bytes: &[u8]) -> Result<Self, ReconCtProviderPolicyError>
Parses one exact, strict V1 JSON policy document.
Sourcepub fn query_domain(&self) -> &str
pub fn query_domain(&self) -> &str
Returns the normalized lowercase ASCII DNS query.
Sourcepub fn query_reference(&self) -> &str
pub fn query_reference(&self) -> &str
Returns the bounded opaque operator query reference.
Sourcepub const fn execution_mode(&self) -> ReconCtProviderExecutionMode
pub const fn execution_mode(&self) -> ReconCtProviderExecutionMode
Returns the closed execution mode.
Sourcepub fn provider_origin(&self) -> &str
pub fn provider_origin(&self) -> &str
Returns the effective provider origin.
Production always returns CERT_SPOTTER_PRODUCTION_ORIGIN. Fixture
mode returns the canonical numeric-loopback origin declared by policy.
Returns the mandatory provider-use authorization acknowledgement.
Sourcepub const fn privacy_disclosure_acknowledged(&self) -> bool
pub const fn privacy_disclosure_acknowledged(&self) -> bool
Returns the mandatory privacy-disclosure acknowledgement.
Sourcepub fn build_request_url(
&self,
after: Option<&str>,
) -> Result<Url, CertSpotterRequestError>
pub fn build_request_url( &self, after: Option<&str>, ) -> Result<Url, CertSpotterRequestError>
Builds the exact permitted provider URL, optionally after one cursor.
Trait Implementations§
Source§impl Clone for CertSpotterPolicy
impl Clone for CertSpotterPolicy
Source§fn clone(&self) -> CertSpotterPolicy
fn clone(&self) -> CertSpotterPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CertSpotterPolicy
impl Debug for CertSpotterPolicy
impl Eq for CertSpotterPolicy
Source§impl PartialEq for CertSpotterPolicy
impl PartialEq for CertSpotterPolicy
impl StructuralPartialEq for CertSpotterPolicy
Auto Trait Implementations§
impl Freeze for CertSpotterPolicy
impl RefUnwindSafe for CertSpotterPolicy
impl Send for CertSpotterPolicy
impl Sync for CertSpotterPolicy
impl Unpin for CertSpotterPolicy
impl UnsafeUnpin for CertSpotterPolicy
impl UnwindSafe for CertSpotterPolicy
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more