pub struct CaptureState {
pub status: u16,
pub body: String,
pub done: bool,
pub streaming: bool,
}Expand description
Snapshot of the most-recently-captured response.
Fields§
§status: u16HTTP status of the captured response.
body: StringBody captured so far (streamed chunks joined, or the full body).
done: boolWhether the response has fully arrived (stream closed / body resolved).
streaming: boolWhether this capture is a streamed (incremental) body.
Trait Implementations§
Source§impl Clone for CaptureState
impl Clone for CaptureState
Source§fn clone(&self) -> CaptureState
fn clone(&self) -> CaptureState
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 CaptureState
impl Debug for CaptureState
Source§impl<'de> Deserialize<'de> for CaptureState
impl<'de> Deserialize<'de> for CaptureState
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 CaptureState
impl RefUnwindSafe for CaptureState
impl Send for CaptureState
impl Sync for CaptureState
impl Unpin for CaptureState
impl UnsafeUnpin for CaptureState
impl UnwindSafe for CaptureState
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