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: DeployHashThe relevant Deploy.
transfers: Vec<TransferAddr>Transfers performed by the Deploy.
from: AccountHashAccount identifier of the creator of the Deploy.
source: URefSource purse used for payment of the Deploy.
gas: U512Gas 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§impl PartialOrd for DeployInfo
impl PartialOrd for DeployInfo
Source§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
Source§type Error = TypeMismatch
type Error = TypeMismatch
The type returned in the event of a conversion error.
impl Eq for DeployInfo
impl StructuralPartialEq for DeployInfo
Auto Trait Implementations§
impl Freeze for DeployInfo
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