pub enum ResponseBodyData {
Text(String),
Binary(Vec<u8>),
}Expand description
Response body content, supporting both text and binary data.
Variants§
Text(String)
Text body content (UTF-8 string).
Binary(Vec<u8>)
Binary body content (base64-decoded from extension).
Implementations§
Trait Implementations§
Source§impl Clone for ResponseBodyData
impl Clone for ResponseBodyData
Source§fn clone(&self) -> ResponseBodyData
fn clone(&self) -> ResponseBodyData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResponseBodyData
impl RefUnwindSafe for ResponseBodyData
impl Send for ResponseBodyData
impl Sync for ResponseBodyData
impl Unpin for ResponseBodyData
impl UnsafeUnpin for ResponseBodyData
impl UnwindSafe for ResponseBodyData
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