pub struct Operation<'a, Ty> {
pub id: &'a str,
pub method: Method,
pub path: ParsedPath<'a>,
pub resource: Option<&'a str>,
pub description: Option<&'a str>,
pub params: &'a [Parameter<'a, Ty>],
pub request: Option<Request<Ty>>,
pub response: Option<Response<Ty>>,
}Fields§
§id: &'a str§method: Method§path: ParsedPath<'a>§resource: Option<&'a str>§description: Option<&'a str>§params: &'a [Parameter<'a, Ty>]§request: Option<Request<Ty>>§response: Option<Response<Ty>>Implementations§
Trait Implementations§
impl<'a, Ty: Copy> Copy for Operation<'a, Ty>
impl<'a, Ty: Eq> Eq for Operation<'a, Ty>
impl<'a, Ty> StructuralPartialEq for Operation<'a, Ty>
Auto Trait Implementations§
impl<'a, Ty> Freeze for Operation<'a, Ty>where
Ty: Freeze,
impl<'a, Ty> RefUnwindSafe for Operation<'a, Ty>where
Ty: RefUnwindSafe,
impl<'a, Ty> Send for Operation<'a, Ty>
impl<'a, Ty> Sync for Operation<'a, Ty>where
Ty: Sync,
impl<'a, Ty> Unpin for Operation<'a, Ty>where
Ty: Unpin,
impl<'a, Ty> UnsafeUnpin for Operation<'a, Ty>where
Ty: UnsafeUnpin,
impl<'a, Ty> UnwindSafe for Operation<'a, Ty>where
Ty: UnwindSafe + RefUnwindSafe,
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 more