pub struct AuthoritySection {
pub actions: Vec<AuthorityEntry>,
pub checked: u32,
pub violations: u32,
pub unverified: u32,
pub bearer: u32,
}Expand description
Per-action authority for a session.
The signature layer answers “was this receipt tampered with”. This answers the question underneath it: was the action allowed, by whom, and what could we not check. A session receipt that reports only the former reads as complete while omitting the half a counterparty is actually deciding on.
Fields§
§actions: Vec<AuthorityEntry>§checked: u32How many action/v2 receipts were judged.
violations: u32Actions that fell outside their grant. Any non-zero value is the headline.
unverified: u32Actions where some layer could not be checked. Not violations, and not clean either – counted separately so neither can hide in the other.
bearer: u32Actions run under a grant naming no holder, spendable by anyone who obtained it.
Trait Implementations§
Source§impl Clone for AuthoritySection
impl Clone for AuthoritySection
Source§fn clone(&self) -> AuthoritySection
fn clone(&self) -> AuthoritySection
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 AuthoritySection
impl Debug for AuthoritySection
Source§impl Default for AuthoritySection
impl Default for AuthoritySection
Source§fn default() -> AuthoritySection
fn default() -> AuthoritySection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuthoritySection
impl<'de> Deserialize<'de> for AuthoritySection
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 AuthoritySection
impl RefUnwindSafe for AuthoritySection
impl Send for AuthoritySection
impl Sync for AuthoritySection
impl Unpin for AuthoritySection
impl UnsafeUnpin for AuthoritySection
impl UnwindSafe for AuthoritySection
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