Struct randomorg::Request [] [src]

pub struct Request<Params: Serialize> {
    pub json_rpc: String,
    pub method: Method,
    pub params: Params,
    pub id: RequestId,
}

A random.org request holder

Fields

A json rpc version

A name of the method to be invoked

A structured value containing the parameters that will be supplied to the method.

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]

impl Request<GenerateDecimalFractionsParams>
[src]

impl Request<GenerateGaussiansParams>
[src]

impl Request<GenerateStringsParams>
[src]

impl Request<GenerateUUIDsParams>
[src]

impl Request<GenerateBlobsParams>
[src]

Trait Implementations

impl<Params: Debug + Serialize> Debug for Request<Params>
[src]

Formats the value using the given formatter.

impl<Params: Clone + Serialize> Clone for Request<Params>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more