pub struct ApiPath {
pub operations: BTreeMap<String, ApiOperation>,
}Expand description
An OpenAPI path item.
Fields§
§operations: BTreeMap<String, ApiOperation>Implementations§
Source§impl ApiPath
impl ApiPath
Sourcepub fn add_operation(&mut self, method: HttpMethod, op: ApiOperation)
pub fn add_operation(&mut self, method: HttpMethod, op: ApiOperation)
Add an operation.
Sourcepub fn operation_count(&self) -> usize
pub fn operation_count(&self) -> usize
Number of operations.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ApiPath
impl RefUnwindSafe for ApiPath
impl Send for ApiPath
impl Sync for ApiPath
impl Unpin for ApiPath
impl UnsafeUnpin for ApiPath
impl UnwindSafe for ApiPath
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<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