pub struct AuthorityEntry {
pub artifact_id: String,
pub action: String,
pub verdict: String,
pub reasons: Vec<String>,
pub scope: Vec<String>,
pub audience: String,
pub grant_id: String,
pub holder_bound: bool,
pub delegation: String,
pub delegation_hops: Option<u32>,
pub effect_finality: Option<String>,
pub resolution: Option<String>,
}Expand description
One action’s authority record.
Fields§
§artifact_id: String§action: StringThe action label, e.g. payments.charge.
verdict: Stringpass | unverified | fail.
reasons: Vec<String>Why, in the verifier’s own words. Empty on a clean pass.
scope: Vec<String>What the grant admitted.
audience: String§grant_id: String§holder_bound: boolWhether the grant named the key entitled to exercise it. false means
bearer, and the surface must say so rather than leave it blank.
delegation: Stringnot_claimed | holds | widened | unresolvable.
delegation_hops: Option<u32>Hops in the resolved chain, when one was claimed.
effect_finality: Option<String>How far the state change got: not_attempted | initiated |
finalized | failed | indeterminate.
resolution: Option<String>Whether anything is still owed: resolved | indefinite | pending |
breached | bad_deadline.
Trait Implementations§
Source§impl Clone for AuthorityEntry
impl Clone for AuthorityEntry
Source§fn clone(&self) -> AuthorityEntry
fn clone(&self) -> AuthorityEntry
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 moreSource§impl Debug for AuthorityEntry
impl Debug for AuthorityEntry
Source§impl Default for AuthorityEntry
impl Default for AuthorityEntry
Source§fn default() -> AuthorityEntry
fn default() -> AuthorityEntry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuthorityEntry
impl<'de> Deserialize<'de> for AuthorityEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AuthorityEntry
impl RefUnwindSafe for AuthorityEntry
impl Send for AuthorityEntry
impl Sync for AuthorityEntry
impl Unpin for AuthorityEntry
impl UnsafeUnpin for AuthorityEntry
impl UnwindSafe for AuthorityEntry
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