pub enum NetworkBody {
None,
Text {
text: String,
},
Base64 {
base64: String,
},
Skipped {
reason: String,
},
}Expand description
Response body of a captured entry.
Variants§
None
No body captured yet (in flight) or the response had none.
Text
UTF-8 text body.
Base64
Base64-encoded binary body.
Skipped
Body deliberately not captured (e.g. over the size cap, or evicted
before it could be read); reason says which.
Trait Implementations§
Source§impl Clone for NetworkBody
impl Clone for NetworkBody
Source§fn clone(&self) -> NetworkBody
fn clone(&self) -> NetworkBody
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 NetworkBody
impl Debug for NetworkBody
Source§impl Default for NetworkBody
impl Default for NetworkBody
Source§fn default() -> NetworkBody
fn default() -> NetworkBody
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NetworkBody
impl<'de> Deserialize<'de> for NetworkBody
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 NetworkBody
impl RefUnwindSafe for NetworkBody
impl Send for NetworkBody
impl Sync for NetworkBody
impl Unpin for NetworkBody
impl UnsafeUnpin for NetworkBody
impl UnwindSafe for NetworkBody
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