Struct casper_execution_engine::core::engine_state::deploy_item::DeployItem
source · pub struct DeployItem {
pub address: AccountHash,
pub session: ExecutableDeployItem,
pub payment: ExecutableDeployItem,
pub gas_price: u64,
pub authorization_keys: BTreeSet<AccountHash>,
pub deploy_hash: DeployHash,
}Expand description
Definition of a deploy with all the details that make it possible to execute it. Corresponds to the similarly-named IPC protobuf message.
Fields§
§address: AccountHashAddress that created and signed this deploy. This address will be used as a context for executing session code.
session: ExecutableDeployItemSession code.
payment: ExecutableDeployItemPayment code.
gas_price: u64Gas price specified for this deploy by the user.
List of accounts that signed this deploy.
deploy_hash: DeployHashA unique identifier of the deploy.
Currently it is the hash of the deploy header (see DeployHeader in the types crate).
Implementations§
source§impl DeployItem
impl DeployItem
sourcepub fn new(
address: AccountHash,
session: ExecutableDeployItem,
payment: ExecutableDeployItem,
gas_price: u64,
authorization_keys: BTreeSet<AccountHash>,
deploy_hash: DeployHash
) -> Self
pub fn new( address: AccountHash, session: ExecutableDeployItem, payment: ExecutableDeployItem, gas_price: u64, authorization_keys: BTreeSet<AccountHash>, deploy_hash: DeployHash ) -> Self
Creates a DeployItem.
Trait Implementations§
source§impl Clone for DeployItem
impl Clone for DeployItem
source§fn clone(&self) -> DeployItem
fn clone(&self) -> DeployItem
Returns a copy of the value. Read more
1.0.0 · 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 DeployItem
impl Debug for DeployItem
source§impl PartialEq for DeployItem
impl PartialEq for DeployItem
source§fn eq(&self, other: &DeployItem) -> bool
fn eq(&self, other: &DeployItem) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for DeployItem
impl StructuralPartialEq for DeployItem
Auto Trait Implementations§
impl RefUnwindSafe for DeployItem
impl Send for DeployItem
impl Sync for DeployItem
impl Unpin for DeployItem
impl UnwindSafe for DeployItem
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.