pub struct Randomness(pub Vec<u8>);Expand description
String of random bytes usually generated from a randomness beacon or from tickets on chain.
Tuple Fields§
§0: Vec<u8>Trait Implementations§
Source§impl Clone for Randomness
impl Clone for Randomness
Source§fn clone(&self) -> Randomness
fn clone(&self) -> Randomness
Returns a duplicate 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 Randomness
impl Debug for Randomness
Source§impl Default for Randomness
impl Default for Randomness
Source§fn default() -> Randomness
fn default() -> Randomness
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Randomness
impl<'de> Deserialize<'de> for Randomness
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 PartialEq for Randomness
impl PartialEq for Randomness
Source§impl Serialize for Randomness
impl Serialize for Randomness
impl Eq for Randomness
impl StructuralPartialEq for Randomness
Auto Trait Implementations§
impl Freeze for Randomness
impl RefUnwindSafe for Randomness
impl Send for Randomness
impl Sync for Randomness
impl Unpin for Randomness
impl UnwindSafe for Randomness
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