pub enum OperationResponses {
Common(Type),
Map(BTreeMap<StatusCode, Schema>),
}
Expand description
The type of all possible responses of an API operation.
Variants§
Common(Type)
The responses of this operation are represented by a common type that is shared by other operations.
Map(BTreeMap<StatusCode, Schema>)
The responses of this operation are uniquely identified by this map of HTTP status codes to schemas.
Trait Implementations§
source§impl Clone for OperationResponses
impl Clone for OperationResponses
source§fn clone(&self) -> OperationResponses
fn clone(&self) -> OperationResponses
Returns a copy 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 RefUnwindSafe for OperationResponses
impl Send for OperationResponses
impl Sync for OperationResponses
impl Unpin for OperationResponses
impl UnwindSafe for OperationResponses
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