[−][src]Struct randomorg::Request
A random.org request holder
Fields
json_rpc: String
A json rpc version
method: Method
A name of the method to be invoked
params: Params
A structured value containing the parameters that will be supplied to the method.
id: RequestId
A request identifier that allows the client to match responses to request. The service will return this unchanged in its response.
Methods
impl Request<ApiKeyParams>
[src]
impl Request<GenerateIntegersParams>
[src]
pub fn new(
api_key: ApiKey,
min: i32,
max: i32,
limit: u16,
replacement: bool
) -> Request<GenerateIntegersParams>
[src]
api_key: ApiKey,
min: i32,
max: i32,
limit: u16,
replacement: bool
) -> Request<GenerateIntegersParams>
impl Request<GenerateDecimalFractionsParams>
[src]
pub fn new(
api_key: ApiKey,
limit: u16,
decimal_places: u8
) -> Request<GenerateDecimalFractionsParams>
[src]
api_key: ApiKey,
limit: u16,
decimal_places: u8
) -> Request<GenerateDecimalFractionsParams>
impl Request<GenerateGaussiansParams>
[src]
pub fn new(
api_key: ApiKey,
limit: u16,
mean: i32,
standard_deviation: i32,
significant_digits: u8
) -> Request<GenerateGaussiansParams>
[src]
api_key: ApiKey,
limit: u16,
mean: i32,
standard_deviation: i32,
significant_digits: u8
) -> Request<GenerateGaussiansParams>
impl Request<GenerateStringsParams>
[src]
pub fn new(
api_key: ApiKey,
limit: u16,
length: u8,
characters: AllowedCharacters
) -> Request<GenerateStringsParams>
[src]
api_key: ApiKey,
limit: u16,
length: u8,
characters: AllowedCharacters
) -> Request<GenerateStringsParams>
impl Request<GenerateUUIDsParams>
[src]
impl Request<GenerateBlobsParams>
[src]
Trait Implementations
impl<Params: Clone + Serialize> Clone for Request<Params>
[src]
fn clone(&self) -> Request<Params>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<Params: Debug + Serialize> Debug for Request<Params>
[src]
impl<Params: Serialize> Serialize for Request<Params> where
Params: Serialize,
[src]
Params: Serialize,
Auto Trait Implementations
impl<Params> Send for Request<Params> where
Params: Send,
Params: Send,
impl<Params> Sync for Request<Params> where
Params: Sync,
Params: Sync,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,