pub struct Message {
pub headers: BTreeMap<String, String>,
pub body: Bytes,
pub patches: Vec<Patch>,
pub status_code: Option<u16>,
pub encoding: Option<String>,
pub url: Option<String>,
}Fields§
§headers: BTreeMap<String, String>§body: Bytes§patches: Vec<Patch>§status_code: Option<u16>§encoding: Option<String>§url: Option<String>Implementations§
Source§impl Message
impl Message
pub fn status(&self) -> Option<u16>
pub fn version(&self) -> Option<&str>
pub fn current_version(&self) -> Option<&str>
pub fn parents(&self) -> Option<&str>
pub fn decode_body(&self) -> Result<Bytes>
pub fn extra_headers(&self) -> BTreeMap<String, String>
pub fn body_text(&self) -> Option<String>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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