pub enum RawBody {
Text(String),
Binary(Vec<u8>),
Empty,
}
Expand description
Represents the body content of a raw HTTP response.
This enum handles different types of response bodies:
- Text content (including JSON, HTML, XML, etc.)
- Binary content (images, files, etc.)
- Empty responses
Variants§
Text(String)
Text-based content (UTF-8 encoded)
Binary(Vec<u8>)
Binary content
Empty
Empty response body
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RawBody
impl RefUnwindSafe for RawBody
impl Send for RawBody
impl Sync for RawBody
impl Unpin for RawBody
impl UnwindSafe for RawBody
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