Struct randomorg::Response [] [src]

pub struct Response<ResponseResult> {
    pub json_rpc: String,
    pub result: ResponseResult,
    pub id: RequestId,
}

A random.org response holder

Fields

A json rpc version

If no error occurred, this member contains the response from the service, typically random values and other associated data. If an error occurred, this member is not included in the response.

A request identifier that allows the client to match responses to request. The service will return this unchanged in its response.

Trait Implementations

impl<ResponseResult: Debug> Debug for Response<ResponseResult>
[src]

Formats the value using the given formatter.

impl<ResponseResult: Clone> Clone for Response<ResponseResult>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more