pub struct ResponseValidator;
Expand description
Response validator
Implementations§
Source§impl ResponseValidator
impl ResponseValidator
Sourcepub fn validate_response(
spec: &OpenApiSpec,
operation: &Operation,
status_code: u16,
headers: &HashMap<String, String>,
body: Option<&Value>,
) -> Result<ResponseValidationResult>
pub fn validate_response( spec: &OpenApiSpec, operation: &Operation, status_code: u16, headers: &HashMap<String, String>, body: Option<&Value>, ) -> Result<ResponseValidationResult>
Validate a response against an OpenAPI operation
Auto Trait Implementations§
impl Freeze for ResponseValidator
impl RefUnwindSafe for ResponseValidator
impl Send for ResponseValidator
impl Sync for ResponseValidator
impl Unpin for ResponseValidator
impl UnwindSafe for ResponseValidator
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