pub struct Response<ResponseResult> {
pub json_rpc: String,
pub result: ResponseResult,
pub id: RequestId,
}Expand description
A random.org response holder
Fields§
§json_rpc: StringA json rpc version
result: ResponseResultIf 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.
id: RequestIdA request identifier that allows the client to match responses to request. The service will return this unchanged in its response.
Trait Implementations§
Source§impl<'de, ResponseResult> Deserialize<'de> for Response<ResponseResult>where
ResponseResult: Deserialize<'de>,
impl<'de, ResponseResult> Deserialize<'de> for Response<ResponseResult>where
ResponseResult: Deserialize<'de>,
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
Auto Trait Implementations§
impl<ResponseResult> Freeze for Response<ResponseResult>where
ResponseResult: Freeze,
impl<ResponseResult> RefUnwindSafe for Response<ResponseResult>where
ResponseResult: RefUnwindSafe,
impl<ResponseResult> Send for Response<ResponseResult>where
ResponseResult: Send,
impl<ResponseResult> Sync for Response<ResponseResult>where
ResponseResult: Sync,
impl<ResponseResult> Unpin for Response<ResponseResult>where
ResponseResult: Unpin,
impl<ResponseResult> UnwindSafe for Response<ResponseResult>where
ResponseResult: UnwindSafe,
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