pub struct OperationOracleDescriptor { /* private fields */ }Expand description
Trusted, Serialize-only identity of an executable operation oracle.
Implementations§
Source§impl OperationOracleDescriptor
impl OperationOracleDescriptor
pub fn new( oracle_id: OperationOracleId, version: ContractVersion, implementation_fingerprint: impl Into<String>, operation_id: OperationId, operation_fingerprint: impl Into<String>, ) -> Result<Self, VNextError>
pub fn oracle_id(&self) -> &OperationOracleId
pub const fn version(&self) -> ContractVersion
pub fn implementation_fingerprint(&self) -> &str
pub fn operation_id(&self) -> &OperationId
pub fn operation_fingerprint(&self) -> &str
pub fn fingerprint(&self) -> Result<String, VNextError>
pub fn decode_untrusted( bytes: &[u8], ) -> Result<UnvalidatedOperationOracleDescriptor, VNextError>
Trait Implementations§
Source§impl Clone for OperationOracleDescriptor
impl Clone for OperationOracleDescriptor
Source§fn clone(&self) -> OperationOracleDescriptor
fn clone(&self) -> OperationOracleDescriptor
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 OperationOracleDescriptor
impl Debug for OperationOracleDescriptor
impl Eq for OperationOracleDescriptor
impl StructuralPartialEq for OperationOracleDescriptor
Auto Trait Implementations§
impl Freeze for OperationOracleDescriptor
impl RefUnwindSafe for OperationOracleDescriptor
impl Send for OperationOracleDescriptor
impl Sync for OperationOracleDescriptor
impl Unpin for OperationOracleDescriptor
impl UnsafeUnpin for OperationOracleDescriptor
impl UnwindSafe for OperationOracleDescriptor
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