pub struct AnnotatedOperation {
pub path: String,
pub method: String,
pub features: Vec<ConformanceFeature>,
pub request_body_content_type: Option<String>,
pub sample_body: Option<String>,
pub query_params: Vec<(String, String)>,
pub header_params: Vec<(String, String)>,
pub path_params: Vec<(String, String)>,
pub response_schema: Option<Schema>,
}Expand description
An API operation annotated with the conformance features it exercises
Fields§
§path: String§method: String§features: Vec<ConformanceFeature>§request_body_content_type: Option<String>§sample_body: Option<String>§query_params: Vec<(String, String)>§header_params: Vec<(String, String)>§path_params: Vec<(String, String)>§response_schema: Option<Schema>Response schema for validation (JSON string of the schema)
Trait Implementations§
Source§impl Clone for AnnotatedOperation
impl Clone for AnnotatedOperation
Source§fn clone(&self) -> AnnotatedOperation
fn clone(&self) -> AnnotatedOperation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AnnotatedOperation
impl RefUnwindSafe for AnnotatedOperation
impl Send for AnnotatedOperation
impl Sync for AnnotatedOperation
impl Unpin for AnnotatedOperation
impl UnsafeUnpin for AnnotatedOperation
impl UnwindSafe for AnnotatedOperation
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,
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