pub struct VerifyConfig {
pub max_chain_depth: u8,
pub expected_audience: String,
pub revocation_store: Option<Arc<dyn UcanRevocationStore>>,
}Expand description
Configuration for chain verification.
Fields§
§max_chain_depth: u8Hard cap on chain depth. Default 5 per spec §4.6. Prevents stack-exhaustion via pathologically deep proof chains.
expected_audience: StringThe leaf’s aud must equal this value. Bound by dispatch to
the connection’s client_id (UDS) or the bearer’s caller (HTTP).
revocation_store: Option<Arc<dyn UcanRevocationStore>>Optional revocation store. When None, no revocation check is
performed (suitable for tests / closed-system adopters). When
Some, every link’s CID is consulted.
Implementations§
Trait Implementations§
Source§impl Clone for VerifyConfig
impl Clone for VerifyConfig
Source§fn clone(&self) -> VerifyConfig
fn clone(&self) -> VerifyConfig
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 moreAuto Trait Implementations§
impl Freeze for VerifyConfig
impl !RefUnwindSafe for VerifyConfig
impl Send for VerifyConfig
impl Sync for VerifyConfig
impl Unpin for VerifyConfig
impl UnsafeUnpin for VerifyConfig
impl !UnwindSafe for VerifyConfig
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