pub enum SendMessageResponse {
Task(Task),
Message(Message),
}Expand description
Handler-level response from SendMessage — can be a Task or direct Message.
Uses externally tagged serialization for internal pattern matching.
For the wire format (JSON-RPC result field), use SendMessageResult.
Variants§
Trait Implementations§
Source§impl Clone for SendMessageResponse
impl Clone for SendMessageResponse
Source§fn clone(&self) -> SendMessageResponse
fn clone(&self) -> SendMessageResponse
Returns a duplicate 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 SendMessageResponse
impl Debug for SendMessageResponse
Source§impl<'de> Deserialize<'de> for SendMessageResponse
impl<'de> Deserialize<'de> for SendMessageResponse
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 PartialEq for SendMessageResponse
impl PartialEq for SendMessageResponse
Source§impl Serialize for SendMessageResponse
impl Serialize for SendMessageResponse
impl StructuralPartialEq for SendMessageResponse
Auto Trait Implementations§
impl Freeze for SendMessageResponse
impl RefUnwindSafe for SendMessageResponse
impl Send for SendMessageResponse
impl Sync for SendMessageResponse
impl Unpin for SendMessageResponse
impl UnsafeUnpin for SendMessageResponse
impl UnwindSafe for SendMessageResponse
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