pub struct ContractDigestEncodingMismatch {
pub revision_id: String,
pub contract_sha256: String,
pub declared: ContractDigestVersion,
pub recomputed: Option<ContractDigestVersion>,
}Expand description
A v2 revision whose contract_sha256 does not recompute under the encoding
it declares. Carries the digest, the declared encoding and the encoding the
digest does recompute under, or None when it matches no contract at all.
Fields§
§revision_id: String§contract_sha256: String§declared: ContractDigestVersion§recomputed: Option<ContractDigestVersion>Trait Implementations§
Source§impl Clone for ContractDigestEncodingMismatch
impl Clone for ContractDigestEncodingMismatch
Source§fn clone(&self) -> ContractDigestEncodingMismatch
fn clone(&self) -> ContractDigestEncodingMismatch
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 moreimpl Eq for ContractDigestEncodingMismatch
Source§impl Error for ContractDigestEncodingMismatch
impl Error for ContractDigestEncodingMismatch
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ContractDigestEncodingMismatch> for ForecastError
impl From<ContractDigestEncodingMismatch> for ForecastError
Source§fn from(mismatch: ContractDigestEncodingMismatch) -> Self
fn from(mismatch: ContractDigestEncodingMismatch) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for ContractDigestEncodingMismatch
Auto Trait Implementations§
impl Freeze for ContractDigestEncodingMismatch
impl RefUnwindSafe for ContractDigestEncodingMismatch
impl Send for ContractDigestEncodingMismatch
impl Sync for ContractDigestEncodingMismatch
impl Unpin for ContractDigestEncodingMismatch
impl UnsafeUnpin for ContractDigestEncodingMismatch
impl UnwindSafe for ContractDigestEncodingMismatch
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