pub struct SendMessageResponse {
pub task: Option<Task>,
pub message: Option<Message>,
}Expand description
Response for message/send — wrapper-based (exactly one field should be set).
Fields§
§task: Option<Task>A task was created or updated.
message: Option<Message>A direct message response.
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