pub struct CanonicalResourceIntent { /* private fields */ }Expand description
A canonical intent can only be created after canonical decoding and digest verification. Its fields are intentionally private.
Implementations§
Source§impl CanonicalResourceIntent
impl CanonicalResourceIntent
pub fn validate( candidate: IntentCandidate, validator: &dyn IntentValidator, ) -> Result<Self, ContractError>
pub const fn digest(&self) -> IntentDigest
pub fn claims(&self) -> &IntentClaims
pub fn canonical_bytes(&self) -> &[u8] ⓘ
pub const fn contract_version(&self) -> ContractVersion
pub const fn format_version(&self) -> IntentFormatVersion
pub const fn digest_suite(&self) -> DigestSuite
Trait Implementations§
Source§impl Clone for CanonicalResourceIntent
impl Clone for CanonicalResourceIntent
Source§fn clone(&self) -> CanonicalResourceIntent
fn clone(&self) -> CanonicalResourceIntent
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 CanonicalResourceIntent
impl Debug for CanonicalResourceIntent
Source§impl PartialEq for CanonicalResourceIntent
impl PartialEq for CanonicalResourceIntent
Source§fn eq(&self, other: &CanonicalResourceIntent) -> bool
fn eq(&self, other: &CanonicalResourceIntent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CanonicalResourceIntent
impl StructuralPartialEq for CanonicalResourceIntent
Auto Trait Implementations§
impl Freeze for CanonicalResourceIntent
impl RefUnwindSafe for CanonicalResourceIntent
impl Send for CanonicalResourceIntent
impl Sync for CanonicalResourceIntent
impl Unpin for CanonicalResourceIntent
impl UnsafeUnpin for CanonicalResourceIntent
impl UnwindSafe for CanonicalResourceIntent
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