pub struct CaptureRule {
pub source: String,
pub expression: String,
pub into: String,
pub extra: Extra,
}Expand description
A capture rule (capture) — extract a value from the matched request and
bind it into scenario/template state under into.
Fields§
§source: StringOne of jsonPath, xpath, header, queryStringParameter, cookie,
pathParameter.
expression: String§into: String§extra: ExtraImplementations§
Trait Implementations§
Source§impl Clone for CaptureRule
impl Clone for CaptureRule
Source§fn clone(&self) -> CaptureRule
fn clone(&self) -> CaptureRule
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 CaptureRule
impl Debug for CaptureRule
Source§impl<'de> Deserialize<'de> for CaptureRule
impl<'de> Deserialize<'de> for CaptureRule
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
Source§impl PartialEq for CaptureRule
impl PartialEq for CaptureRule
Source§fn eq(&self, other: &CaptureRule) -> bool
fn eq(&self, other: &CaptureRule) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CaptureRule
impl Serialize for CaptureRule
impl StructuralPartialEq for CaptureRule
Auto Trait Implementations§
impl Freeze for CaptureRule
impl RefUnwindSafe for CaptureRule
impl Send for CaptureRule
impl Sync for CaptureRule
impl Unpin for CaptureRule
impl UnsafeUnpin for CaptureRule
impl UnwindSafe for CaptureRule
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