Struct wick_config::v1::InherentData
source · pub struct InherentData {
pub seed: Option<u64>,
pub timestamp: Option<u64>,
}Expand description
Data inherent to all invocations.
Fields§
§seed: Option<u64>A random seed, i.e. to initialize a random number generator.
timestamp: Option<u64>A timestamp.
Trait Implementations§
source§impl Clone for InherentData
impl Clone for InherentData
source§fn clone(&self) -> InherentData
fn clone(&self) -> InherentData
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 InherentData
impl Debug for InherentData
source§impl<'de> Deserialize<'de> for InherentData
impl<'de> Deserialize<'de> for InherentData
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 From<InherentConfig> for InherentData
impl From<InherentConfig> for InherentData
source§fn from(value: InherentConfig) -> Self
fn from(value: InherentConfig) -> Self
Converts to this type from the input type.
source§impl From<InherentData> for InherentConfig
impl From<InherentData> for InherentConfig
source§fn from(value: InherentData) -> Self
fn from(value: InherentData) -> Self
Converts to this type from the input type.
source§impl PartialEq<InherentData> for InherentData
impl PartialEq<InherentData> for InherentData
source§fn eq(&self, other: &InherentData) -> bool
fn eq(&self, other: &InherentData) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for InherentData
impl Serialize for InherentData
impl StructuralPartialEq for InherentData
Auto Trait Implementations§
impl RefUnwindSafe for InherentData
impl Send for InherentData
impl Sync for InherentData
impl Unpin for InherentData
impl UnwindSafe for InherentData
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