Struct aria2_ws::RpcResponse
source · pub struct RpcResponse {
pub id: Option<i32>,
pub jsonrpc: String,
pub result: Option<Value>,
pub error: Option<Aria2Error>,
}
Fields
id: Option<i32>
jsonrpc: String
result: Option<Value>
error: Option<Aria2Error>
Trait Implementations
sourceimpl Clone for RpcResponse
impl Clone for RpcResponse
sourcefn clone(&self) -> RpcResponse
fn clone(&self) -> RpcResponse
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RpcResponse
impl Debug for RpcResponse
sourceimpl<'de> Deserialize<'de> for RpcResponse
impl<'de> Deserialize<'de> for RpcResponse
sourcefn 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 RefUnwindSafe for RpcResponse
impl Send for RpcResponse
impl Sync for RpcResponse
impl Unpin for RpcResponse
impl UnwindSafe for RpcResponse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more