pub struct MessageBodyResult {
pub availability: Availability,
pub id: String,
pub content_type: String,
pub body: Option<String>,
pub truncated: bool,
}Fields§
§availability: Availability§id: StringEcho of the requested id, so a caller fetching several bodies can correlate replies without tracking call order.
content_type: String"text" or "html".
body: Option<String>§truncated: booltrue when the body was cut at MESSAGE_BODY_CAP.
Trait Implementations§
Source§impl Clone for MessageBodyResult
impl Clone for MessageBodyResult
Source§fn clone(&self) -> MessageBodyResult
fn clone(&self) -> MessageBodyResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MessageBodyResult
impl Debug for MessageBodyResult
Source§impl<'de> Deserialize<'de> for MessageBodyResult
impl<'de> Deserialize<'de> for MessageBodyResult
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 Freeze for MessageBodyResult
impl RefUnwindSafe for MessageBodyResult
impl Send for MessageBodyResult
impl Sync for MessageBodyResult
impl Unpin for MessageBodyResult
impl UnsafeUnpin for MessageBodyResult
impl UnwindSafe for MessageBodyResult
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