pub struct PathItem<P, R> {
pub methods: BTreeMap<HttpMethod, Operation<P, R>>,
pub parameters: Vec<Either<Reference, P>>,
}
Expand description
Fields§
§methods: BTreeMap<HttpMethod, Operation<P, R>>
§parameters: Vec<Either<Reference, P>>
Implementations§
Trait Implementations§
source§impl<'de, P, R> Deserialize<'de> for PathItem<P, R>where
P: Deserialize<'de>,
R: Deserialize<'de>,
impl<'de, P, R> Deserialize<'de> for PathItem<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<PathItem<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>> for PathItem
impl From<PathItem<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>> for PathItem
source§fn from(v2: DefaultPathItemRaw) -> Self
fn from(v2: DefaultPathItemRaw) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<P, R> Freeze for PathItem<P, R>
impl<P, R> RefUnwindSafe for PathItem<P, R>where
P: RefUnwindSafe,
R: RefUnwindSafe,
impl<P, R> Send for PathItem<P, R>
impl<P, R> Sync for PathItem<P, R>
impl<P, R> Unpin for PathItem<P, R>where
P: Unpin,
impl<P, R> UnwindSafe for PathItem<P, R>
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
)