pub enum SectionType {
Show 13 variants
Address,
Endpoint,
Request,
Response,
Error,
RequestHeaders,
Asserts,
Proto,
Tls,
Options,
Extract,
Meta,
Bench,
}Expand description
Section types in .gctf files
Variants§
Address
Server address
Endpoint
gRPC endpoint (service/method)
Request
Request payload (can have multiple)
Response
Expected response (can have multiple)
Error
Expected error
RequestHeaders
Request-specific headers
Asserts
Assertion expressions (can have multiple)
Proto
Protocol buffer configuration
Tls
TLS/mTLS configuration
Options
Test execution options
Extract
Extract variables from response
Meta
File-level metadata (suite, tags)
Bench
File-level benchmark profile/options
Implementations§
Source§impl SectionType
impl SectionType
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Returns true if this section marks the end of a logical request-response cycle.
Sourcepub fn from_keyword(s: &str) -> Option<SectionType>
pub fn from_keyword(s: &str) -> Option<SectionType>
Parse section name string to SectionType
Sourcepub fn is_multiple_allowed(&self) -> bool
pub fn is_multiple_allowed(&self) -> bool
Check if section can appear multiple times
Sourcepub fn is_file_level(&self) -> bool
pub fn is_file_level(&self) -> bool
Check if section is file-level (not inside documents)
pub fn supports_inline_options(&self) -> bool
pub fn preamble_rank(&self) -> Option<usize>
Trait Implementations§
Source§impl Clone for SectionType
impl Clone for SectionType
Source§fn clone(&self) -> SectionType
fn clone(&self) -> SectionType
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 moreimpl Copy for SectionType
Source§impl Debug for SectionType
impl Debug for SectionType
Source§impl<'de> Deserialize<'de> for SectionType
impl<'de> Deserialize<'de> for SectionType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SectionType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SectionType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SectionType
Source§impl Hash for SectionType
impl Hash for SectionType
Source§impl PartialEq for SectionType
impl PartialEq for SectionType
Source§impl Serialize for SectionType
impl Serialize for SectionType
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 SectionType
Auto Trait Implementations§
impl Freeze for SectionType
impl RefUnwindSafe for SectionType
impl Send for SectionType
impl Sync for SectionType
impl Unpin for SectionType
impl UnsafeUnpin for SectionType
impl UnwindSafe for SectionType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.