#[non_exhaustive]pub struct PathItem {
pub summary: Option<String>,
pub description: Option<String>,
pub servers: Option<Vec<Server>>,
pub parameters: Option<Vec<Parameter>>,
pub operations: BTreeMap<PathItemType, Operation>,
pub extensions: Option<HashMap<String, Value>>,
}Expand description
Implements OpenAPI Path Item Object what describes Operations available on
a single path.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.summary: Option<String>Optional summary intended to apply all operations in this PathItem.
description: Option<String>Optional description intended to apply all operations in this PathItem.
Description supports markdown syntax.
servers: Option<Vec<Server>>Alternative Server array to serve all Operations in this PathItem overriding
the global server array.
parameters: Option<Vec<Parameter>>List of Parameters common to all Operations in this PathItem. Parameters cannot
contain duplicate parameters. They can be overridden in Operation level but cannot be
removed there.
operations: BTreeMap<PathItemType, Operation>Map of operations in this PathItem. Operations can hold only one operation
per PathItemType.
extensions: Option<HashMap<String, Value>>Optional extensions “x-something”.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PathItem
impl<'de> Deserialize<'de> for PathItem
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PathItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PathItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PathItem> for PathItemBuilder
impl From<PathItem> for PathItemBuilder
Source§fn from(value: PathItem) -> PathItemBuilder
fn from(value: PathItem) -> PathItemBuilder
Converts to this type from the input type.
Source§impl From<PathItemBuilder> for PathItem
impl From<PathItemBuilder> for PathItem
Source§fn from(value: PathItemBuilder) -> PathItem
fn from(value: PathItemBuilder) -> PathItem
Converts to this type from the input type.
Source§impl Serialize for PathItem
impl Serialize for PathItem
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PathItem
Auto Trait Implementations§
impl Freeze for PathItem
impl RefUnwindSafe for PathItem
impl Send for PathItem
impl Sync for PathItem
impl Unpin for PathItem
impl UnwindSafe for PathItem
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