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 more