pub struct Response {
pub jsonrpc: Version,
pub id: Option<Id>,
pub result: Option<Value>,
pub error: Option<Error>,
}Fields
jsonrpc: Versionid: Option<Id>result: Option<Value>error: Option<Error>Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
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
sourceimpl TypeDef for Response
impl TypeDef for Response
sourceconst INFO: TypeInfo = {
::typescript_type_def::type_expr::TypeInfo::Defined(::typescript_type_def::type_expr::DefinedTypeInfo{def:
::typescript_type_def::type_expr::TypeDefinition{docs:
::core::option::Option::None,
path: &[],
name: ::typescript_type_def::type_expr::Ident("Response"),
generic_vars: &[],
def:
::typescript_type_def::type_expr::TypeExpr::Object(::typescript_type_def::type_expr::TypeObject{docs:
::core::option::Option::None,
index_signature: ::core::option::Option::None,
fields:
&[::typescript_type_def::type_expr::ObjectField{docs:
::core::option::Option::None,
name:
::typescript_type_def::type_expr::TypeString{docs:
::core::option::Option::None,
value: "jsonrpc",},
optional: false,
r#type:
::typescript_type_def::type_expr::TypeExpr::Ref(&::INFO),},
::typescript_type_def::type_expr::ObjectField{docs:
::core::option::Option::None,
name:
::typescript_type_def::type_expr::TypeString{docs:
::core::option::Option::None,
value: "id",},
optional: false,
r#type:
::typescript_type_def::type_expr::TypeExpr::Ref(&
const INFO: TypeInfo = {
::typescript_type_def::type_expr::TypeInfo::Defined(::typescript_type_def::type_expr::DefinedTypeInfo{def:
::typescript_type_def::type_expr::TypeDefinition{docs:
::core::option::Option::None,
path: &[],
name: ::typescript_type_def::type_expr::Ident("Response"),
generic_vars: &[],
def:
::typescript_type_def::type_expr::TypeExpr::Object(::typescript_type_def::type_expr::TypeObject{docs:
::core::option::Option::None,
index_signature: ::core::option::Option::None,
fields:
&[::typescript_type_def::type_expr::ObjectField{docs:
::core::option::Option::None,
name:
::typescript_type_def::type_expr::TypeString{docs:
::core::option::Option::None,
value: "jsonrpc",},
optional: false,
r#type:
::typescript_type_def::type_expr::TypeExpr::Ref(&::INFO),},
::typescript_type_def::type_expr::ObjectField{docs:
::core::option::Option::None,
name:
::typescript_type_def::type_expr::TypeString{docs:
::core::option::Option::None,
value: "id",},
optional: false,
r#type:
::typescript_type_def::type_expr::TypeExpr::Ref(&
A constant value describing the structure of this type. Read more
Auto Trait Implementations
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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