pub enum Policy {
UcanRequired {
issuer: [u8; 32],
},
RealmMemberRequired {
key_id: [u8; 32],
can: String,
},
}Expand description
What a gated procedure requires of a request’s token.
Variants§
UcanRequired
A token whose chain is rooted at the identity key of this node_id.
RealmMemberRequired
A token whose chain is rooted at the realm key of this key id,
granting a capability with this can.
Implementations§
Trait Implementations§
impl Eq for Policy
impl StructuralPartialEq for Policy
Auto Trait Implementations§
impl Freeze for Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnsafeUnpin for Policy
impl UnwindSafe for Policy
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