pub struct Random<'a> {
pub common_fields: CommonFields<'a>,
}
Expand description
The random command provides a random number to be used as a source of entropy for random number generation by clients.
See Random:
<https://xrpl.org/random.html#random>
Fields§
§common_fields: CommonFields<'a>
The common fields shared by all requests.
Implementations§
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for Random<'a>
impl<'de, 'a> Deserialize<'de> for Random<'a>
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<'a> From<Random<'a>> for XRPLRequest<'a>
impl<'a> From<Random<'a>> for XRPLRequest<'a>
Source§impl<'a> Model for Random<'a>
impl<'a> Model for Random<'a>
Source§fn get_errors(&self) -> XRPLModelResult<()>
fn get_errors(&self) -> XRPLModelResult<()>
Collects a models errors and returns the first error that occurs.
Source§fn validate(&self) -> XRPLModelResult<()>
fn validate(&self) -> XRPLModelResult<()>
Simply forwards the error from
get_errors
if there was one.Source§impl<'a> Request<'a> for Random<'a>
impl<'a> Request<'a> for Random<'a>
fn get_common_fields(&self) -> &CommonFields<'a>
fn get_common_fields_mut(&mut self) -> &mut CommonFields<'a>
impl<'a> Eq for Random<'a>
impl<'a> StructuralPartialEq for Random<'a>
Auto Trait Implementations§
impl<'a> Freeze for Random<'a>
impl<'a> RefUnwindSafe for Random<'a>
impl<'a> Send for Random<'a>
impl<'a> Sync for Random<'a>
impl<'a> Unpin for Random<'a>
impl<'a> UnwindSafe for Random<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.