pub struct VerifiedBinding { /* private fields */ }Expand description
A binding whose signature, pass, issuer, holder, audience, lifetime, grant log and ancestry were checked against one verified pass.
Implementations§
Source§impl VerifiedBinding
impl VerifiedBinding
Sourcepub fn verify(
binding: &str,
token: &str,
pass: &VerifiedPass,
keys: &KeySet,
log: &GrantLog,
) -> Result<Self, Error>
pub fn verify( binding: &str, token: &str, pass: &VerifiedPass, keys: &KeySet, log: &GrantLog, ) -> Result<Self, Error>
Verify binding as the binding of the pass token, already verified
as pass, on the grant log log the product’s stream reads.
Sourcepub fn verify_bound(
binding: &str,
bound: &Bound<'_>,
keys: &KeySet,
log: &GrantLog,
) -> Result<Self, Error>
pub fn verify_bound( binding: &str, bound: &Bound<'_>, keys: &KeySet, log: &GrantLog, ) -> Result<Self, Error>
Verify binding as the binding of a pass bound describes: one a
registry-owned producer issued and verified by its own contract,
whose binding Lys judged (POST /grants/bindings).
Sourcepub const fn claims(&self) -> &BindingClaims
pub const fn claims(&self) -> &BindingClaims
The verified claims.
Sourcepub const fn revision(&self) -> u64
pub const fn revision(&self) -> u64
The revision a product’s stream must stand at before admitting.
Sourcepub fn dependency(&self, grant: &str) -> Option<&Dependency>
pub fn dependency(&self, grant: &str) -> Option<&Dependency>
The dependency of the right resting on grant, as a decision of the
pass names it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VerifiedBinding
impl RefUnwindSafe for VerifiedBinding
impl Send for VerifiedBinding
impl Sync for VerifiedBinding
impl Unpin for VerifiedBinding
impl UnsafeUnpin for VerifiedBinding
impl UnwindSafe for VerifiedBinding
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