Struct casper_types::DeployInfo
source · pub struct DeployInfo {
pub deploy_hash: DeployHash,
pub transfers: Vec<TransferAddr>,
pub from: AccountHash,
pub source: URef,
pub gas: U512,
}
Expand description
Information relating to the given Deploy.
Fields§
§deploy_hash: DeployHash
The relevant Deploy.
transfers: Vec<TransferAddr>
Transfers performed by the Deploy.
from: AccountHash
Account identifier of the creator of the Deploy.
source: URef
Source purse used for payment of the Deploy.
gas: U512
Gas cost of executing the Deploy.
Implementations§
source§impl DeployInfo
impl DeployInfo
sourcepub fn new(
deploy_hash: DeployHash,
transfers: &[TransferAddr],
from: AccountHash,
source: URef,
gas: U512
) -> Self
pub fn new( deploy_hash: DeployHash, transfers: &[TransferAddr], from: AccountHash, source: URef, gas: U512 ) -> Self
Creates a DeployInfo
.
Trait Implementations§
source§impl Clone for DeployInfo
impl Clone for DeployInfo
source§fn clone(&self) -> DeployInfo
fn clone(&self) -> DeployInfo
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 DeployInfo
impl Debug for DeployInfo
source§impl<'de> Deserialize<'de> for DeployInfo
impl<'de> Deserialize<'de> for DeployInfo
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
source§impl FromBytes for DeployInfo
impl FromBytes for DeployInfo
source§impl Ord for DeployInfo
impl Ord for DeployInfo
source§fn cmp(&self, other: &DeployInfo) -> Ordering
fn cmp(&self, other: &DeployInfo) -> Ordering
1.21.0 · 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 DeployInfo
impl PartialEq for DeployInfo
source§fn eq(&self, other: &DeployInfo) -> bool
fn eq(&self, other: &DeployInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DeployInfo
impl PartialOrd for DeployInfo
source§fn partial_cmp(&self, other: &DeployInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &DeployInfo) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for DeployInfo
impl Serialize for DeployInfo
source§impl ToBytes for DeployInfo
impl ToBytes for DeployInfo
source§fn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Returns the length of the
Vec<u8>
which would be returned from a successful call to
to_bytes()
or into_bytes()
. The data is not actually serialized, so this call is
relatively cheap.source§impl TryFrom<StoredValue> for DeployInfo
impl TryFrom<StoredValue> for DeployInfo
§type Error = TypeMismatch
type Error = TypeMismatch
The type returned in the event of a conversion error.
impl Eq for DeployInfo
impl StructuralEq for DeployInfo
impl StructuralPartialEq for DeployInfo
Auto Trait Implementations§
impl RefUnwindSafe for DeployInfo
impl Send for DeployInfo
impl Sync for DeployInfo
impl Unpin for DeployInfo
impl UnwindSafe for DeployInfo
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