pub struct Operation {
pub description: Option<String>,
pub operation_id: Option<String>,
pub parameters: Vec<RefOrParameter>,
pub request_body: Option<RefOrRequestBody>,
pub responses: IndexMap<String, RefOrResponse>,
pub extensions: IndexMap<String, Value>,
}Expand description
An HTTP operation.
Fields§
§description: Option<String>§operation_id: Option<String>§parameters: Vec<RefOrParameter>§request_body: Option<RefOrRequestBody>§responses: IndexMap<String, RefOrResponse>§extensions: IndexMap<String, Value>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Operation
impl<'de> Deserialize<'de> for Operation
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 JsonPointee for Operation
impl JsonPointee for Operation
Source§fn resolve(
&self,
pointer: &JsonPointer,
) -> Result<&dyn JsonPointee, JsonPointeeError>
fn resolve( &self, pointer: &JsonPointer, ) -> Result<&dyn JsonPointee, JsonPointeeError>
Resolves a
JsonPointer against this value.Source§impl<'pointee> JsonPointerTarget<'pointee> for &'pointee Operation
impl<'pointee> JsonPointerTarget<'pointee> for &'pointee Operation
Source§fn from_pointee(
pointee: &'pointee dyn JsonPointee,
) -> Result<Self, JsonPointerTargetError>
fn from_pointee( pointee: &'pointee dyn JsonPointee, ) -> Result<Self, JsonPointerTargetError>
Tries to extract
Self from a resolved pointee.Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<P> JsonPointeeExt for Pwhere
P: JsonPointee + ?Sized,
impl<P> JsonPointeeExt for Pwhere
P: JsonPointee + ?Sized,
Source§fn pointer<'a, T>(&'a self, path: &str) -> Result<T, JsonPointerError>where
T: JsonPointerTarget<'a>,
fn pointer<'a, T>(&'a self, path: &str) -> Result<T, JsonPointerError>where
T: JsonPointerTarget<'a>,
Parses a JSON pointer string, resolves it against this value,
and extracts the result as
T.