[][src]Struct casper_node::types::DeployHeader

pub struct DeployHeader { /* fields omitted */ }

The header portion of a Deploy.

Implementations

impl DeployHeader[src]

pub fn account(&self) -> &PublicKey[src]

The account within which the deploy will be run.

pub fn timestamp(&self) -> Timestamp[src]

When the deploy was created.

pub fn ttl(&self) -> TimeDiff[src]

How long the deploy will stay valid.

pub fn expired(&self, current_instant: Timestamp) -> bool[src]

Has this deploy expired?

pub fn gas_price(&self) -> u64[src]

Price per gas unit for this deploy.

pub fn body_hash(&self) -> &Digest[src]

Hash of the Wasm code.

pub fn dependencies(&self) -> &Vec<DeployHash>[src]

Other deploys that have to be run before this one.

pub fn chain_name(&self) -> &str[src]

Which chain the deploy is supposed to be run on.

pub fn is_valid(
    &self,
    deploy_config: &DeployConfig,
    current_timestamp: Timestamp
) -> bool
[src]

Determine if this deploy header has valid values based on a DeployConfig and timestamp.

impl DeployHeader[src]

pub fn expires(&self) -> Timestamp[src]

Returns the timestamp of when the deploy expires, i.e. self.timestamp + self.ttl.

Trait Implementations

impl Clone for DeployHeader[src]

impl DataSize for DeployHeader[src]

impl Debug for DeployHeader[src]

impl<'de> Deserialize<'de> for DeployHeader[src]

impl Display for DeployHeader[src]

impl Eq for DeployHeader[src]

impl FromBytes for DeployHeader[src]

impl Hash for DeployHeader[src]

impl JsonSchema for DeployHeader[src]

impl Ord for DeployHeader[src]

impl PartialEq<DeployHeader> for DeployHeader[src]

impl PartialOrd<DeployHeader> for DeployHeader[src]

impl Serialize for DeployHeader[src]

impl StructuralEq for DeployHeader[src]

impl StructuralPartialEq for DeployHeader[src]

impl ToBytes for DeployHeader[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]