#[non_exhaustive]pub struct DeploymentCode {
pub bytes: RpcData,
pub hash: Hash32,
pub matches_expected: Option<bool>,
}Expand description
Code in the source’s state at the end of the canonical inclusion block. Empty code is preserved: successful creation does not guarantee deployed code.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bytes: RpcDataBounded runtime bytes, not init code. Debug reveals length only.
hash: Hash32Keccak-256 of the exact runtime bytes, including the empty-code case.
matches_expected: Option<bool>Comparison with the caller’s expected runtime hash, when supplied.
Trait Implementations§
Source§impl Clone for DeploymentCode
impl Clone for DeploymentCode
Source§impl Debug for DeploymentCode
impl Debug for DeploymentCode
Source§impl PartialEq for DeploymentCode
impl PartialEq for DeploymentCode
impl StructuralPartialEq for DeploymentCode
Auto Trait Implementations§
impl Forget for DeploymentCode
impl Freeze for DeploymentCode
impl Move for DeploymentCode
impl RefUnwindSafe for DeploymentCode
impl Send for DeploymentCode
impl Sync for DeploymentCode
impl Unpin for DeploymentCode
impl UnsafeUnpin for DeploymentCode
impl UnwindSafe for DeploymentCode
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