Skip to main content

VerifyOptions

Struct VerifyOptions 

Source
pub struct VerifyOptions {
    pub trust_pem: Option<String>,
    pub tsa_trust_pem: Option<String>,
    pub allowed_list_pem: Option<String>,
    pub cawg_trust_pem: Option<String>,
    pub cawg_allowed_certs_pem: Option<String>,
    pub no_default_trust: bool,
    pub cawg_did_documents: Option<HashMap<String, Value>>,
    pub cawg_strict_encoding: bool,
    pub strict_conformance: bool,
    pub validation_time: Option<String>,
    pub telemetry: TelemetryOptions,
}

Fields§

§trust_pem: Option<String>

PEM bundle of claim-signing trust anchors.

§tsa_trust_pem: Option<String>

PEM bundle of timestamp-authority trust anchors.

§allowed_list_pem: Option<String>

PEM bundle of directly allowed end-entity certificates.

§cawg_trust_pem: Option<String>

PEM bundle of trust anchors for CAWG named-actor (identity) X.509 credentials. None leaves identity signers untrusted (their well-formedness is still validated).

§cawg_allowed_certs_pem: Option<String>

PEM bundle of directly allowed CAWG end-entity certificates.

§no_default_trust: bool

Disable the bundled C2PA, IPTC, and Encypher trust snapshots. By default, caller-supplied PEM bundles extend those snapshots; setting this to true evaluates only caller-supplied trust material.

§cawg_did_documents: Option<HashMap<String, Value>>

Pinned offline did:web DID-document store for CAWG ICA issuers, keyed by primary DID (no fragment). Resolution never touches the network: an issuer absent from the store fails closed with cawg.ica.did_unavailable.

§cawg_strict_encoding: bool

Refuse CAWG 1.1-era legacy encodings (field-order signer_payload, 1.1 ICA context, byte-array c2paAsset hashes): only the CAWG 1.2 canonical shapes are attempted. When unset, legacy shapes verify and are surfaced via the informational com.encypher.cawg.legacyProfile status.

§strict_conformance: bool

Apply the C2PA 2.4 Conformance Program posture instead of the default generous core-spec read. This raises applicable SHOULD requirements to the conformance bar and emits strict diagnostics in the reader report.

§validation_time: Option<String>

RFC 3339 validation instant. Current UTC time is used when omitted.

§telemetry: TelemetryOptions

Failure telemetry override. None uses the saved per-user preference.

Trait Implementations§

Source§

impl Clone for VerifyOptions

Source§

fn clone(&self) -> VerifyOptions

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for VerifyOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for VerifyOptions

Source§

fn default() -> VerifyOptions

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for VerifyOptions

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V