Skip to main content

Checked

pub struct Checked<'r, 'p, 'a, 'c, S> { /* private fields */ }
Expand description

Completed mechanism facts relative to the caller’s authenticated context. Original issuance/holder/status references remain required; only the new eligibility catalogue is independently owned. This is not an application authorization grant or proof that opaque callback/backend costs are bounded.

Implementations§

Source§

impl<'r, 'p, 'a, 'c, S> Checked<'r, 'p, 'a, 'c, S>

Source

pub fn certificate(&self) -> &'r AttributeCertificate<'c>

Exact original AC whose complete use requirements produced this receipt. This does not authorize substitution of another equal-looking AC.

Source

pub fn authority(&self) -> &Authority<'r, 'p, 'a, 'c>

Original authenticated issuance and selected trust route.

Source

pub fn holder(&self) -> &Holder<'r, 'p, 'a, 'c>

Actual authenticated holder input, not another later certificate.

Source

pub fn status(&self) -> &'r S

Original evidence whose association/time/status checks completed.

Source

pub fn evaluated_at(&self) -> Reading

Exact evaluation label, including subnanosecond precision.

Source

pub fn target(&self) -> Option<usize>

Original matching target ordinal; None means no targeting was written.

Source

pub fn proxy(&self) -> Option<usize>

Original common proxy-set ordinal; None means no ProxyInfo was written.

Source

pub fn attributes(&self) -> &[AttributeUse]

Complete original attribute catalogue and per-type restriction results. Caller traversal/output must be admitted by its own operation.

Source

pub fn allows<W: Work>(&self, kind: Oid<'_>, work: &W) -> Result<Permission>

Apply the same authenticated controls to an actual caller-decrypted type. This does not prove decryption or ACClearAttrs issuer/serial binding.

Trait Implementations§

Source§

impl<'r, 'p, 'a, 'c, S: Debug> Debug for Checked<'r, 'p, 'a, 'c, S>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'r, 'p, 'a, 'c, S> !Freeze for Checked<'r, 'p, 'a, 'c, S>

§

impl<'r, 'p, 'a, 'c, S> !RefUnwindSafe for Checked<'r, 'p, 'a, 'c, S>

§

impl<'r, 'p, 'a, 'c, S> !Send for Checked<'r, 'p, 'a, 'c, S>

§

impl<'r, 'p, 'a, 'c, S> !Sync for Checked<'r, 'p, 'a, 'c, S>

§

impl<'r, 'p, 'a, 'c, S> !UnwindSafe for Checked<'r, 'p, 'a, 'c, S>

§

impl<'r, 'p, 'a, 'c, S> Unpin for Checked<'r, 'p, 'a, 'c, S>
where &'r S: Unpin,

§

impl<'r, 'p, 'a, 'c, S> UnsafeUnpin for Checked<'r, 'p, 'a, 'c, S>

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<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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.