pub struct Content {
pub content: Vec<u8>,
pub type: ContentType,
pub status_code: u16,
pub reason: String,
}
Expand description
Structure for the content returned by the page
From the example in the README.md, you can already understand how to use
Fields§
§content: Vec<u8>
§type: ContentType
§status_code: u16
§reason: String
Implementations§
Auto Trait Implementations§
impl Freeze for Content
impl RefUnwindSafe for Content
impl Send for Content
impl Sync for Content
impl Unpin for Content
impl UnwindSafe for Content
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