pub struct ResponsesObject {
pub responses: Vec<(ResponseSpecifier, ResponseCase)>,
}
Expand description
https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.4.md#responses-object
Fields§
§responses: Vec<(ResponseSpecifier, ResponseCase)>
Implementations§
Source§impl ResponsesObject
impl ResponsesObject
Sourcepub fn new(
responses: Vec<(ResponseSpecifier, ResponseCase)>,
) -> Result<Output<Self>>
pub fn new( responses: Vec<(ResponseSpecifier, ResponseCase)>, ) -> Result<Output<Self>>
The Responses Object MUST contain at least one response code, and it SHOULD be the response for a successful operation call.
pub fn from_yaml_map(map: YamlMap) -> Result<Output<Self>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResponsesObject
impl RefUnwindSafe for ResponsesObject
impl Send for ResponsesObject
impl Sync for ResponsesObject
impl Unpin for ResponsesObject
impl UnwindSafe for ResponsesObject
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