Skip to main content

PlanAuthorizationEvidence

Trait PlanAuthorizationEvidence 

Source
pub trait PlanAuthorizationEvidence {
    // Required method
    fn encode<E: Copy>(
        &self,
        writer: &mut SnapshotEncoder<'_, PlanFingerprintBuildError<E>>,
    ) -> Result<(), PlanFingerprintBuildError<E>>;

    // Provided method
    fn valid_until(&self) -> Option<PermitTimestamp> { ... }
}
Expand description

Immutable provider-owned authorization evidence appended only to a digest preimage.

Implementations must emit the same bounded bytes on every call and must not read clocks, random sources, atomics, or other mutable state. Sensitive values should be exposed only for the duration of Self::encode.

Required Methods§

Source

fn encode<E: Copy>( &self, writer: &mut SnapshotEncoder<'_, PlanFingerprintBuildError<E>>, ) -> Result<(), PlanFingerprintBuildError<E>>

Encodes a provider-versioned, unambiguous evidence snapshot.

Provided Methods§

Source

fn valid_until(&self) -> Option<PermitTimestamp>

Returns the exclusive upper bound for authority derived from this evidence.

None means the evidence has no independent time limit. A returned timestamp must cover the complete permit validity interval.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§