pub struct Body<Payload: Clone> {
pub msg_id: Option<u64>,
pub in_reply_to: Option<u64>,
pub payload: Payload,
}
Fields§
§msg_id: Option<u64>
§in_reply_to: Option<u64>
§payload: Payload
Trait Implementations§
Source§impl<'de, Payload> Deserialize<'de> for Body<Payload>where
Payload: Deserialize<'de> + Clone,
impl<'de, Payload> Deserialize<'de> for Body<Payload>where
Payload: Deserialize<'de> + Clone,
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
Auto Trait Implementations§
impl<Payload> Freeze for Body<Payload>where
Payload: Freeze,
impl<Payload> RefUnwindSafe for Body<Payload>where
Payload: RefUnwindSafe,
impl<Payload> Send for Body<Payload>where
Payload: Send,
impl<Payload> Sync for Body<Payload>where
Payload: Sync,
impl<Payload> Unpin for Body<Payload>where
Payload: Unpin,
impl<Payload> UnwindSafe for Body<Payload>where
Payload: UnwindSafe,
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