Struct randomorg::Request [−][src]
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.
Implementations
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>
Create a request for integers generation.
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>
Create a request for decimal fractions generation.
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>
Create a request for gaussians generation.
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>
Create a request for strings generation.
impl Request<GenerateUUIDsParams>
[src]
pub fn new(api_key: ApiKey, limit: u16) -> Request<GenerateUUIDsParams>
[src]
Create a request for strings UUIDs generation.
impl Request<GenerateBlobsParams>
[src]
pub fn new(
api_key: ApiKey,
limit: u16,
size: u32
) -> Request<GenerateBlobsParams>
[src]
api_key: ApiKey,
limit: u16,
size: u32
) -> Request<GenerateBlobsParams>
Create a request for blobs generation.
Trait Implementations
impl<Params: Clone + Serialize> Clone for Request<Params>
[src]
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> RefUnwindSafe for Request<Params> where
Params: RefUnwindSafe,
[src]
Params: RefUnwindSafe,
impl<Params> Send for Request<Params> where
Params: Send,
[src]
Params: Send,
impl<Params> Sync for Request<Params> where
Params: Sync,
[src]
Params: Sync,
impl<Params> Unpin for Request<Params> where
Params: Unpin,
[src]
Params: Unpin,
impl<Params> UnwindSafe for Request<Params> where
Params: UnwindSafe,
[src]
Params: UnwindSafe,
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> 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> 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, 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>,