[−][src]Struct casper_node::types::DeployHeader
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]
&self,
deploy_config: &DeployConfig,
current_timestamp: Timestamp
) -> bool
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]
pub fn clone(&self) -> DeployHeader[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl DataSize for DeployHeader[src]
pub const IS_DYNAMIC: bool[src]
pub const STATIC_HEAP_SIZE: usize[src]
pub fn estimate_heap_size(&self) -> usize[src]
impl Debug for DeployHeader[src]
impl<'de> Deserialize<'de> for DeployHeader[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Display for DeployHeader[src]
impl Eq for DeployHeader[src]
impl FromBytes for DeployHeader[src]
pub fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), Error>[src]
pub fn from_vec(
bytes: Vec<u8, Global>
) -> Result<(Self, Vec<u8, Global>), Error>[src]
bytes: Vec<u8, Global>
) -> Result<(Self, Vec<u8, Global>), Error>
impl Hash for DeployHeader[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl JsonSchema for DeployHeader[src]
pub fn schema_name() -> String[src]
pub fn json_schema(gen: &mut SchemaGenerator) -> Schema[src]
pub fn is_referenceable() -> bool[src]
impl Ord for DeployHeader[src]
pub fn cmp(&self, other: &DeployHeader) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl PartialEq<DeployHeader> for DeployHeader[src]
pub fn eq(&self, other: &DeployHeader) -> bool[src]
pub fn ne(&self, other: &DeployHeader) -> bool[src]
impl PartialOrd<DeployHeader> for DeployHeader[src]
pub fn partial_cmp(&self, other: &DeployHeader) -> Option<Ordering>[src]
pub fn lt(&self, other: &DeployHeader) -> bool[src]
pub fn le(&self, other: &DeployHeader) -> bool[src]
pub fn gt(&self, other: &DeployHeader) -> bool[src]
pub fn ge(&self, other: &DeployHeader) -> bool[src]
impl Serialize for DeployHeader[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructuralEq for DeployHeader[src]
impl StructuralPartialEq for DeployHeader[src]
impl ToBytes for DeployHeader[src]
Auto Trait Implementations
impl RefUnwindSafe for DeployHeader[src]
impl Send for DeployHeader[src]
impl Sync for DeployHeader[src]
impl Unpin for DeployHeader[src]
impl UnwindSafe for DeployHeader[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> CallHasher for T where
T: Hash,
T: Hash,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> DynClone for T where
T: Clone, [src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Serialize for T where
T: Serialize + ?Sized, [src]
T: Serialize + ?Sized,
pub fn erased_serialize(
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>[src]
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>, [src]
S: Into<Dispatch>,