pub struct ProgramRevision { /* private fields */ }Implementations§
Source§impl ProgramRevision
impl ProgramRevision
pub fn new( graph_digest: Digest, source_digest: Digest, environment: ProgramEnvironment, ) -> Result<Self, ContractError>
pub fn with_domain_contribution( self, contribution: DomainContribution, ) -> Result<Self, ContractError>
pub fn domain_contribution(&self, name: &str) -> Option<&Digest>
pub fn schema_version(&self) -> u16
pub fn graph_digest(&self) -> &Digest
pub fn source_digest(&self) -> &Digest
pub fn environment(&self) -> ProgramEnvironment
pub fn semantic_schema(&self) -> u32
pub fn compiler_schema(&self) -> u32
pub fn runtime_fingerprint(&self) -> &Digest
pub fn catalog_fingerprint(&self) -> &Digest
pub fn compatibility_mode(&self) -> &str
pub fn domain_contributions(&self) -> &[DomainContribution]
pub fn validate(&self) -> Result<(), ContractError>
pub fn canonical_bytes(&self) -> Result<Vec<u8>, ContractError>
pub fn from_canonical_bytes(bytes: &[u8]) -> Result<Self, ContractError>
pub fn identity_digest(&self) -> Result<Digest, ContractError>
pub fn canonical_identity(&self) -> String
Trait Implementations§
Source§impl Clone for ProgramRevision
impl Clone for ProgramRevision
Source§fn clone(&self) -> ProgramRevision
fn clone(&self) -> ProgramRevision
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 ProgramRevision
impl Debug for ProgramRevision
Source§impl<'de> Deserialize<'de> for ProgramRevision
impl<'de> Deserialize<'de> for ProgramRevision
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 ProgramRevision
Source§impl Hash for ProgramRevision
impl Hash for ProgramRevision
Source§impl Ord for ProgramRevision
impl Ord for ProgramRevision
Source§fn cmp(&self, other: &ProgramRevision) -> Ordering
fn cmp(&self, other: &ProgramRevision) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ProgramRevision
impl PartialEq for ProgramRevision
Source§impl PartialOrd for ProgramRevision
impl PartialOrd for ProgramRevision
Source§impl Serialize for ProgramRevision
impl Serialize for ProgramRevision
impl StructuralPartialEq for ProgramRevision
Auto Trait Implementations§
impl Freeze for ProgramRevision
impl RefUnwindSafe for ProgramRevision
impl Send for ProgramRevision
impl Sync for ProgramRevision
impl Unpin for ProgramRevision
impl UnsafeUnpin for ProgramRevision
impl UnwindSafe for ProgramRevision
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