pub struct PathItemBuilder { /* private fields */ }Expand description
Implementations§
Source§impl PathItemBuilder
impl PathItemBuilder
Sourcepub fn new() -> PathItemBuilder
pub fn new() -> PathItemBuilder
Constructs a new PathItemBuilder.
Source§impl PathItemBuilder
impl PathItemBuilder
Sourcepub fn operation<O>(
self,
http_method: HttpMethod,
operation: O,
) -> PathItemBuilder
pub fn operation<O>( self, http_method: HttpMethod, operation: O, ) -> PathItemBuilder
Append a new Operation by HttpMethod to this PathItem. Operations can
hold only one operation per HttpMethod.
Sourcepub fn summary<S>(self, summary: Option<S>) -> PathItemBuilder
pub fn summary<S>(self, summary: Option<S>) -> PathItemBuilder
Add or change summary intended to apply all operations in this PathItem.
Sourcepub fn description<S>(self, description: Option<S>) -> PathItemBuilder
pub fn description<S>(self, description: Option<S>) -> PathItemBuilder
Add or change optional description intended to apply all operations in this PathItem.
Description supports markdown syntax.
Sourcepub fn servers<I>(self, servers: Option<I>) -> PathItemBuilderwhere
I: IntoIterator<Item = Server>,
pub fn servers<I>(self, servers: Option<I>) -> PathItemBuilderwhere
I: IntoIterator<Item = Server>,
Sourcepub fn parameters<I>(self, parameters: Option<I>) -> PathItemBuilderwhere
I: IntoIterator<Item = Parameter>,
pub fn parameters<I>(self, parameters: Option<I>) -> PathItemBuilderwhere
I: IntoIterator<Item = Parameter>,
Sourcepub fn extensions(self, extensions: Option<Extensions>) -> PathItemBuilder
pub fn extensions(self, extensions: Option<Extensions>) -> PathItemBuilder
Add openapi extensions (x-something) to this PathItem.
Trait Implementations§
Source§impl Default for PathItemBuilder
impl Default for PathItemBuilder
Source§fn default() -> PathItemBuilder
fn default() -> PathItemBuilder
Returns the “default value” for a type. 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.
Auto Trait Implementations§
impl Freeze for PathItemBuilder
impl RefUnwindSafe for PathItemBuilder
impl Send for PathItemBuilder
impl Sync for PathItemBuilder
impl Unpin for PathItemBuilder
impl UnwindSafe for PathItemBuilder
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