Expand description
Only used for generated TS bindings
Variants
Ok(T)
Err(Error)
Trait Implementations
sourceimpl<'de, T: TypeDef> Deserialize<'de> for RpcResult<T> where
T: Deserialize<'de>,
impl<'de, T: TypeDef> Deserialize<'de> for RpcResult<T> where
T: Deserialize<'de>,
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<T: TypeDef> TypeDef for RpcResult<T> where
T: TypeDef,
impl<T: TypeDef> TypeDef for RpcResult<T> where
T: TypeDef,
sourceconst INFO: TypeInfo = {
struct __TypeParam_T;
impl ::typescript_type_def::TypeDef for __TypeParam_T {
const INFO: ::typescript_type_def::type_expr::TypeInfo =
::typescript_type_def::type_expr::TypeInfo::Native(::typescript_type_def::type_expr::NativeTypeInfo{r#ref:
::typescript_type_def::type_expr::TypeExpr::ident(::typescript_type_def::type_expr::Ident("T")),});
}
::typescript_type_def::type_expr::TypeInfo::Defined(::typescript_type_def::type_expr::DefinedTypeInfo{def:
::typescript_type_def::type_expr::TypeDefinition{docs:
::core::option::Option::Some(::typescript_type_def::type_expr::Docs("Only used for generated TS bindings")),
path: &[],
name: ::typescript_type_def::type_expr::Ident("RpcResult"),
generic_vars:
&[::typescript_type_def::type_expr::Ident("T")],
def:
::typescript_type_def::type_expr::TypeExpr::Union(::typescript_type_def::type_expr::TypeUnion{docs:
::core::option::Option::None,
members:
&[::typescript_type_def::type_expr::TypeExpr::Ref(&<__TypeParam_T
as ::typescript_type_def::TypeDef>::INFO),
::typescript_type_def::type_expr::TypeExpr::Ref(&::INFO)],}),},
generic_args:
&[::typescript_type_def::type_expr::TypeExpr::Ref(&::INFO)],})
}
const INFO: TypeInfo = {
struct __TypeParam_T;
impl ::typescript_type_def::TypeDef for __TypeParam_T {
const INFO: ::typescript_type_def::type_expr::TypeInfo =
::typescript_type_def::type_expr::TypeInfo::Native(::typescript_type_def::type_expr::NativeTypeInfo{r#ref:
::typescript_type_def::type_expr::TypeExpr::ident(::typescript_type_def::type_expr::Ident("T")),});
}
::typescript_type_def::type_expr::TypeInfo::Defined(::typescript_type_def::type_expr::DefinedTypeInfo{def:
::typescript_type_def::type_expr::TypeDefinition{docs:
::core::option::Option::Some(::typescript_type_def::type_expr::Docs("Only used for generated TS bindings")),
path: &[],
name: ::typescript_type_def::type_expr::Ident("RpcResult"),
generic_vars:
&[::typescript_type_def::type_expr::Ident("T")],
def:
::typescript_type_def::type_expr::TypeExpr::Union(::typescript_type_def::type_expr::TypeUnion{docs:
::core::option::Option::None,
members:
&[::typescript_type_def::type_expr::TypeExpr::Ref(&<__TypeParam_T
as ::typescript_type_def::TypeDef>::INFO),
::typescript_type_def::type_expr::TypeExpr::Ref(&::INFO)],}),},
generic_args:
&[::typescript_type_def::type_expr::TypeExpr::Ref(&::INFO)],})
}
A constant value describing the structure of this type. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for RpcResult<T> where
T: RefUnwindSafe,
impl<T> Send for RpcResult<T> where
T: Send,
impl<T> Sync for RpcResult<T> where
T: Sync,
impl<T> Unpin for RpcResult<T> where
T: Unpin,
impl<T> UnwindSafe for RpcResult<T> where
T: UnwindSafe,
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