pub struct AttemptAuthorityRecord { /* private fields */ }Expand description
Named exact declared operation and budget admitted by a journal owner.
This data alone is not fresh permission, settlement evidence or a dispatch permit.
Implementations§
Source§impl AttemptAuthorityRecord
impl AttemptAuthorityRecord
Sourcepub const fn new(
binding: OperationBindingRecord,
budget: AttemptBudgetRecord,
) -> Self
pub const fn new( binding: OperationBindingRecord, budget: AttemptBudgetRecord, ) -> Self
Bind already validated operation identity to immutable finite limits.
Sourcepub const fn binding(&self) -> &OperationBindingRecord
pub const fn binding(&self) -> &OperationBindingRecord
Read canonical declared identity.
Sourcepub const fn budget(&self) -> &AttemptBudgetRecord
pub const fn budget(&self) -> &AttemptBudgetRecord
Read immutable ceilings.
Sourcepub fn digest(&self) -> ArtifactChecksumRecord
pub fn digest(&self) -> ArtifactChecksumRecord
Hash exact immutable authority using the maintained domain-separated encoding.
Encoding is the ASCII domain (including its NUL), four fixed 64-byte lowercase digest strings in intent/network/release/request order, big-endian u64 operation sequence, u8-length-prefixed canonical ASCII caller/target text, then big-endian u32 mutation/observation limits. Mutable events are excluded.
Trait Implementations§
Source§impl Clone for AttemptAuthorityRecord
impl Clone for AttemptAuthorityRecord
Source§impl Debug for AttemptAuthorityRecord
impl Debug for AttemptAuthorityRecord
Source§impl<'de> Deserialize<'de> for AttemptAuthorityRecord
impl<'de> Deserialize<'de> for AttemptAuthorityRecord
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
impl Eq for AttemptAuthorityRecord
Source§impl PartialEq for AttemptAuthorityRecord
impl PartialEq for AttemptAuthorityRecord
Source§impl Serialize for AttemptAuthorityRecord
impl Serialize for AttemptAuthorityRecord
impl StructuralPartialEq for AttemptAuthorityRecord
Auto Trait Implementations§
impl Freeze for AttemptAuthorityRecord
impl RefUnwindSafe for AttemptAuthorityRecord
impl Send for AttemptAuthorityRecord
impl Sync for AttemptAuthorityRecord
impl Unpin for AttemptAuthorityRecord
impl UnsafeUnpin for AttemptAuthorityRecord
impl UnwindSafe for AttemptAuthorityRecord
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