pub struct MessageResponse {
pub to: String,
pub error: Option<GatewayError>,
/* private fields */
}
Expand description
Response for a message sent to the gateway
Fields§
§to: String
Message destination
error: Option<GatewayError>
Error preventing message being processed, None
if successfully processed
Implementations§
Trait Implementations§
Source§impl Clone for MessageResponse
impl Clone for MessageResponse
Source§fn clone(&self) -> MessageResponse
fn clone(&self) -> MessageResponse
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 MessageResponse
impl Debug for MessageResponse
Source§impl<'de> Deserialize<'de> for MessageResponse
impl<'de> Deserialize<'de> for MessageResponse
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 MessageResponse
impl PartialEq for MessageResponse
impl StructuralPartialEq for MessageResponse
Auto Trait Implementations§
impl Freeze for MessageResponse
impl RefUnwindSafe for MessageResponse
impl Send for MessageResponse
impl Sync for MessageResponse
impl Unpin for MessageResponse
impl UnwindSafe for MessageResponse
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