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<ResultFromClient, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<ResultFromClient, <D as Deserializer<'de>>::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) -> ResultFromClient
fn from(value: ClientResult) -> ResultFromClient
Converts to this type from the input type.
Source§impl From<CreateMessageResult> for ResultFromClient
impl From<CreateMessageResult> for ResultFromClient
Source§fn from(value: CreateMessageResult) -> ResultFromClient
fn from(value: CreateMessageResult) -> ResultFromClient
Converts to this type from the input type.
Source§impl From<ListRootsResult> for ResultFromClient
impl From<ListRootsResult> for ResultFromClient
Source§fn from(value: ListRootsResult) -> ResultFromClient
fn from(value: ListRootsResult) -> ResultFromClient
Converts to this type from the input type.
Source§impl From<Result> for ResultFromClient
impl From<Result> for ResultFromClient
Source§fn from(value: Result) -> ResultFromClient
fn from(value: Result) -> ResultFromClient
Converts to this type from the input type.
Source§impl From<ResultFromClient> for MessageFromClient
impl From<ResultFromClient> for MessageFromClient
Source§fn from(value: ResultFromClient) -> MessageFromClient
fn from(value: ResultFromClient) -> MessageFromClient
Converts to this type from the input type.
Source§impl From<Value> for ResultFromClient
impl From<Value> for ResultFromClient
Source§fn from(value: Value) -> ResultFromClient
fn from(value: Value) -> ResultFromClient
Converts to this type from the input type.
Source§impl Serialize for ResultFromClient
impl Serialize for ResultFromClient
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<ResultFromClient> for ClientResult
impl TryFrom<ResultFromClient> for ClientResult
Source§fn try_from(
value: ResultFromClient,
) -> Result<ClientResult, <ClientResult as TryFrom<ResultFromClient>>::Error>
fn try_from( value: ResultFromClient, ) -> Result<ClientResult, <ClientResult as TryFrom<ResultFromClient>>::Error>
Performs the conversion.
Source§impl TryFrom<ResultFromClient> for CreateMessageResult
impl TryFrom<ResultFromClient> for CreateMessageResult
Source§fn try_from(
value: ResultFromClient,
) -> Result<CreateMessageResult, <CreateMessageResult as TryFrom<ResultFromClient>>::Error>
fn try_from( value: ResultFromClient, ) -> Result<CreateMessageResult, <CreateMessageResult as TryFrom<ResultFromClient>>::Error>
Performs the conversion.
Source§impl TryFrom<ResultFromClient> for ListRootsResult
impl TryFrom<ResultFromClient> for ListRootsResult
Source§fn try_from(
value: ResultFromClient,
) -> Result<ListRootsResult, <ListRootsResult as TryFrom<ResultFromClient>>::Error>
fn try_from( value: ResultFromClient, ) -> Result<ListRootsResult, <ListRootsResult as TryFrom<ResultFromClient>>::Error>
Performs the conversion.
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