pub struct NativeConformanceExecutor { /* private fields */ }Expand description
Native conformance executor using reqwest
Implementations§
Source§impl NativeConformanceExecutor
impl NativeConformanceExecutor
Sourcepub fn new(config: ConformanceConfig) -> Result<Self>
pub fn new(config: ConformanceConfig) -> Result<Self>
Create a new executor from a ConformanceConfig
Sourcepub fn with_reference_checks(self) -> Self
pub fn with_reference_checks(self) -> Self
Populate checks from hardcoded reference endpoints (/conformance/*).
Used when no --spec is provided.
Sourcepub fn with_spec_driven_checks(self, operations: &[AnnotatedOperation]) -> Self
pub fn with_spec_driven_checks(self, operations: &[AnnotatedOperation]) -> Self
Populate checks from annotated spec operations (spec-driven mode)
Sourcepub fn with_custom_checks(self) -> Result<Self>
pub fn with_custom_checks(self) -> Result<Self>
Load custom checks from the configured YAML file
Sourcepub fn check_count(&self) -> usize
pub fn check_count(&self) -> usize
Return the number of checks that will be executed
Sourcepub async fn execute(&self) -> Result<ConformanceReport>
pub async fn execute(&self) -> Result<ConformanceReport>
Execute all checks and return a ConformanceReport
Sourcepub async fn execute_with_progress(
&self,
tx: Sender<ConformanceProgress>,
) -> Result<ConformanceReport>
pub async fn execute_with_progress( &self, tx: Sender<ConformanceProgress>, ) -> Result<ConformanceReport>
Execute all checks with progress events sent to the channel
Auto Trait Implementations§
impl Freeze for NativeConformanceExecutor
impl !RefUnwindSafe for NativeConformanceExecutor
impl Send for NativeConformanceExecutor
impl Sync for NativeConformanceExecutor
impl Unpin for NativeConformanceExecutor
impl UnsafeUnpin for NativeConformanceExecutor
impl !UnwindSafe for NativeConformanceExecutor
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more