pub enum ResultFromClient {
ClientResult(ClientResult),
CustomResult(Value),
}
Expand description
To determine standard and custom results from the client side Custom results (CustomResult) are of type serde_json::Value and can be deserialized into any custom type.
Variants§
ClientResult(ClientResult)
CustomResult(Value)
Deprecated: Use ClientResult::Result
with extra attributes instead.
Trait Implementations§
Source§impl Clone for ResultFromClient
impl Clone for ResultFromClient
Source§fn clone(&self) -> ResultFromClient
fn clone(&self) -> ResultFromClient
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ResultFromClient
impl Debug for ResultFromClient
Source§impl<'de> Deserialize<'de> for ResultFromClient
impl<'de> Deserialize<'de> for ResultFromClient
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
Source§impl From<ClientResult> for ResultFromClient
impl From<ClientResult> for ResultFromClient
Source§fn from(value: ClientResult) -> Self
fn from(value: ClientResult) -> Self
Converts to this type from the input type.
Source§impl From<CreateMessageResult> for ResultFromClient
impl From<CreateMessageResult> for ResultFromClient
Source§fn from(value: CreateMessageResult) -> Self
fn from(value: CreateMessageResult) -> Self
Converts to this type from the input type.
Source§impl From<ListRootsResult> for ResultFromClient
impl From<ListRootsResult> for ResultFromClient
Source§fn from(value: ListRootsResult) -> Self
fn from(value: ListRootsResult) -> Self
Converts to this type from the input type.
Source§impl From<Result> for ResultFromClient
impl From<Result> for ResultFromClient
Source§impl From<ResultFromClient> for MessageFromClient
impl From<ResultFromClient> for MessageFromClient
Source§fn from(value: ResultFromClient) -> Self
fn from(value: ResultFromClient) -> Self
Converts to this type from the input type.
Source§impl From<Value> for ResultFromClient
impl From<Value> for ResultFromClient
Source§impl Serialize for ResultFromClient
impl Serialize for ResultFromClient
Source§impl TryFrom<ResultFromClient> for ClientResult
impl TryFrom<ResultFromClient> for ClientResult
Source§impl TryFrom<ResultFromClient> for ListRootsResult
impl TryFrom<ResultFromClient> for ListRootsResult
Auto Trait Implementations§
impl Freeze for ResultFromClient
impl RefUnwindSafe for ResultFromClient
impl Send for ResultFromClient
impl Sync for ResultFromClient
impl Unpin for ResultFromClient
impl UnwindSafe for ResultFromClient
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