pub struct OperationLocatorV1 { /* private fields */ }Expand description
Opaque-to-clients locator for one receipt owned by one named authority.
Implementations§
Source§impl OperationLocatorV1
impl OperationLocatorV1
pub fn new( authority: OperationAuthorityKindV1, collection_id: CollectionId, authority_identity: [u8; 32], operation_identity: [u8; 32], recovery_era: RecoveryEra, authority_revision: u64, receipt_ordinal: u64, semantic_digest: [u8; 32], submitted_at: u64, expires_at: u64, resource_digest: [u8; 32], ) -> Result<Self, OperationLocatorError>
pub const fn collection_id(&self) -> CollectionId
pub const fn operation_identity(&self) -> [u8; 32]
pub const fn recovery_era(&self) -> RecoveryEra
pub const fn receipt_ordinal(&self) -> u64
pub const fn semantic_digest(&self) -> [u8; 32]
pub const fn submitted_at(&self) -> u64
pub const fn expires_at(&self) -> u64
pub const fn resource_digest(&self) -> [u8; 32]
pub fn binding_digest(&self) -> [u8; 32]
pub fn mutation_replay_identity( &self, ) -> Result<MutationReplayIdentity, MutationLifecycleError>
pub fn encode(&self) -> Vec<u8> ⓘ
pub fn decode(bytes: &[u8]) -> Result<Self, OperationLocatorError>
pub fn validate_current(&self) -> Result<(), OperationLocatorError>
Trait Implementations§
Source§impl Clone for OperationLocatorV1
impl Clone for OperationLocatorV1
Source§impl Debug for OperationLocatorV1
impl Debug for OperationLocatorV1
Source§impl<'de> Deserialize<'de> for OperationLocatorV1
impl<'de> Deserialize<'de> for OperationLocatorV1
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 OperationLocatorV1
Source§impl Hash for OperationLocatorV1
impl Hash for OperationLocatorV1
Source§impl PartialEq for OperationLocatorV1
impl PartialEq for OperationLocatorV1
Source§impl Serialize for OperationLocatorV1
impl Serialize for OperationLocatorV1
impl StructuralPartialEq for OperationLocatorV1
Auto Trait Implementations§
impl Freeze for OperationLocatorV1
impl RefUnwindSafe for OperationLocatorV1
impl Send for OperationLocatorV1
impl Sync for OperationLocatorV1
impl Unpin for OperationLocatorV1
impl UnsafeUnpin for OperationLocatorV1
impl UnwindSafe for OperationLocatorV1
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