pub enum SectionContent {
Single(String),
Json(Value),
JsonLines(Vec<Value>),
KeyValues(HashMap<String, String>),
Extract(HashMap<String, String>),
Assertions(Vec<String>),
Meta(FileMeta),
Empty,
}Expand description
Section content
Variants§
Single(String)
Single value (ADDRESS, ENDPOINT, etc.)
Json(Value)
JSON object (REQUEST, RESPONSE, ERROR)
JsonLines(Vec<Value>)
Newline-delimited JSON values within a single section block
KeyValues(HashMap<String, String>)
Key-value pairs (REQUEST_HEADERS, TLS, OPTIONS, PROTO)
Extract(HashMap<String, String>)
Extract variables from response (EXTRACT)
Assertions(Vec<String>)
Assertion expressions (ASSERTS)
Meta(FileMeta)
File-level metadata (META)
Empty
Empty section
Trait Implementations§
Source§impl Clone for SectionContent
impl Clone for SectionContent
Source§fn clone(&self) -> SectionContent
fn clone(&self) -> SectionContent
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 SectionContent
impl Debug for SectionContent
Source§impl<'de> Deserialize<'de> for SectionContent
impl<'de> Deserialize<'de> for SectionContent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SectionContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SectionContent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SectionContent
impl PartialEq for SectionContent
Source§impl Serialize for SectionContent
impl Serialize for SectionContent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SectionContent
Auto Trait Implementations§
impl Freeze for SectionContent
impl RefUnwindSafe for SectionContent
impl Send for SectionContent
impl Sync for SectionContent
impl Unpin for SectionContent
impl UnsafeUnpin for SectionContent
impl UnwindSafe for SectionContent
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