pub struct Operation<P, R> {
pub operation_id: Option<String>,
pub summary: Option<String>,
pub description: Option<String>,
pub consumes: Option<BTreeSet<MediaRange>>,
pub produces: Option<BTreeSet<MediaRange>>,
pub security: Vec<BTreeMap<String, Vec<String>>>,
pub schemes: BTreeSet<OperationProtocol>,
pub responses: BTreeMap<String, Either<Reference, R>>,
pub parameters: Vec<Either<Reference, P>>,
pub deprecated: bool,
pub tags: Vec<String>,
}
Expand description
Fields§
§operation_id: Option<String>
§summary: Option<String>
§description: Option<String>
§consumes: Option<BTreeSet<MediaRange>>
§produces: Option<BTreeSet<MediaRange>>
§security: Vec<BTreeMap<String, Vec<String>>>
§schemes: BTreeSet<OperationProtocol>
§responses: BTreeMap<String, Either<Reference, R>>
§parameters: Vec<Either<Reference, P>>
§deprecated: bool
Implementations§
Trait Implementations§
source§impl<'de, P, R> Deserialize<'de> for Operation<P, R>where
P: Deserialize<'de>,
R: Deserialize<'de>,
impl<'de, P, R> Deserialize<'de> for Operation<P, R>where
P: Deserialize<'de>,
R: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>> for Operation
impl From<Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>> for Operation
source§fn from(v2: Operation<DefaultParameterRaw, DefaultResponseRaw>) -> Self
fn from(v2: Operation<DefaultParameterRaw, DefaultResponseRaw>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<P, R> Freeze for Operation<P, R>
impl<P, R> RefUnwindSafe for Operation<P, R>where
P: RefUnwindSafe,
R: RefUnwindSafe,
impl<P, R> Send for Operation<P, R>
impl<P, R> Sync for Operation<P, R>
impl<P, R> Unpin for Operation<P, R>where
P: Unpin,
impl<P, R> UnwindSafe for Operation<P, R>where
R: RefUnwindSafe,
P: UnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)