pub struct PathItemBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<S: State> PathItemBuilder<S>
impl<S: State> PathItemBuilder<S>
Sourcepub fn build(self) -> PathItemwhere
S: IsComplete,
pub fn build(self) -> PathItemwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn summary(self, value: impl Into<String>) -> PathItemBuilder<SetSummary<S>>where
S::Summary: IsUnset,
pub fn summary(self, value: impl Into<String>) -> PathItemBuilder<SetSummary<S>>where
S::Summary: IsUnset,
Sourcepub fn maybe_summary(
self,
value: Option<impl Into<String>>,
) -> PathItemBuilder<SetSummary<S>>where
S::Summary: IsUnset,
pub fn maybe_summary(
self,
value: Option<impl Into<String>>,
) -> PathItemBuilder<SetSummary<S>>where
S::Summary: IsUnset,
Sourcepub fn description(
self,
value: impl Into<String>,
) -> PathItemBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn description(
self,
value: impl Into<String>,
) -> PathItemBuilder<SetDescription<S>>where
S::Description: IsUnset,
Sourcepub fn maybe_description(
self,
value: Option<impl Into<String>>,
) -> PathItemBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn maybe_description(
self,
value: Option<impl Into<String>>,
) -> PathItemBuilder<SetDescription<S>>where
S::Description: IsUnset,
Sourcepub fn servers(
self,
value: impl Into<Vec<Server>>,
) -> PathItemBuilder<SetServers<S>>where
S::Servers: IsUnset,
pub fn servers(
self,
value: impl Into<Vec<Server>>,
) -> PathItemBuilder<SetServers<S>>where
S::Servers: IsUnset,
Sourcepub fn maybe_servers(
self,
value: Option<impl Into<Vec<Server>>>,
) -> PathItemBuilder<SetServers<S>>where
S::Servers: IsUnset,
pub fn maybe_servers(
self,
value: Option<impl Into<Vec<Server>>>,
) -> PathItemBuilder<SetServers<S>>where
S::Servers: IsUnset,
Sourcepub fn parameters(
self,
value: impl Into<Vec<Parameter>>,
) -> PathItemBuilder<SetParameters<S>>where
S::Parameters: IsUnset,
pub fn parameters(
self,
value: impl Into<Vec<Parameter>>,
) -> PathItemBuilder<SetParameters<S>>where
S::Parameters: IsUnset,
Sourcepub fn maybe_parameters(
self,
value: Option<impl Into<Vec<Parameter>>>,
) -> PathItemBuilder<SetParameters<S>>where
S::Parameters: IsUnset,
pub fn maybe_parameters(
self,
value: Option<impl Into<Vec<Parameter>>>,
) -> PathItemBuilder<SetParameters<S>>where
S::Parameters: IsUnset,
Sourcepub fn get(self, value: impl Into<Operation>) -> PathItemBuilder<SetGet<S>>where
S::Get: IsUnset,
pub fn get(self, value: impl Into<Operation>) -> PathItemBuilder<SetGet<S>>where
S::Get: IsUnset,
Sourcepub fn maybe_get(
self,
value: Option<impl Into<Operation>>,
) -> PathItemBuilder<SetGet<S>>where
S::Get: IsUnset,
pub fn maybe_get(
self,
value: Option<impl Into<Operation>>,
) -> PathItemBuilder<SetGet<S>>where
S::Get: IsUnset,
Sourcepub fn put(self, value: impl Into<Operation>) -> PathItemBuilder<SetPut<S>>where
S::Put: IsUnset,
pub fn put(self, value: impl Into<Operation>) -> PathItemBuilder<SetPut<S>>where
S::Put: IsUnset,
Sourcepub fn maybe_put(
self,
value: Option<impl Into<Operation>>,
) -> PathItemBuilder<SetPut<S>>where
S::Put: IsUnset,
pub fn maybe_put(
self,
value: Option<impl Into<Operation>>,
) -> PathItemBuilder<SetPut<S>>where
S::Put: IsUnset,
Sourcepub fn post(self, value: impl Into<Operation>) -> PathItemBuilder<SetPost<S>>where
S::Post: IsUnset,
pub fn post(self, value: impl Into<Operation>) -> PathItemBuilder<SetPost<S>>where
S::Post: IsUnset,
Sourcepub fn maybe_post(
self,
value: Option<impl Into<Operation>>,
) -> PathItemBuilder<SetPost<S>>where
S::Post: IsUnset,
pub fn maybe_post(
self,
value: Option<impl Into<Operation>>,
) -> PathItemBuilder<SetPost<S>>where
S::Post: IsUnset,
Sourcepub fn delete(
self,
value: impl Into<Operation>,
) -> PathItemBuilder<SetDelete<S>>where
S::Delete: IsUnset,
pub fn delete(
self,
value: impl Into<Operation>,
) -> PathItemBuilder<SetDelete<S>>where
S::Delete: IsUnset,
Sourcepub fn maybe_delete(
self,
value: Option<impl Into<Operation>>,
) -> PathItemBuilder<SetDelete<S>>where
S::Delete: IsUnset,
pub fn maybe_delete(
self,
value: Option<impl Into<Operation>>,
) -> PathItemBuilder<SetDelete<S>>where
S::Delete: IsUnset,
Sourcepub fn options(
self,
value: impl Into<Operation>,
) -> PathItemBuilder<SetOptions<S>>where
S::Options: IsUnset,
pub fn options(
self,
value: impl Into<Operation>,
) -> PathItemBuilder<SetOptions<S>>where
S::Options: IsUnset,
Sourcepub fn maybe_options(
self,
value: Option<impl Into<Operation>>,
) -> PathItemBuilder<SetOptions<S>>where
S::Options: IsUnset,
pub fn maybe_options(
self,
value: Option<impl Into<Operation>>,
) -> PathItemBuilder<SetOptions<S>>where
S::Options: IsUnset,
Sourcepub fn head(self, value: impl Into<Operation>) -> PathItemBuilder<SetHead<S>>where
S::Head: IsUnset,
pub fn head(self, value: impl Into<Operation>) -> PathItemBuilder<SetHead<S>>where
S::Head: IsUnset,
Sourcepub fn maybe_head(
self,
value: Option<impl Into<Operation>>,
) -> PathItemBuilder<SetHead<S>>where
S::Head: IsUnset,
pub fn maybe_head(
self,
value: Option<impl Into<Operation>>,
) -> PathItemBuilder<SetHead<S>>where
S::Head: IsUnset,
Sourcepub fn patch(self, value: impl Into<Operation>) -> PathItemBuilder<SetPatch<S>>where
S::Patch: IsUnset,
pub fn patch(self, value: impl Into<Operation>) -> PathItemBuilder<SetPatch<S>>where
S::Patch: IsUnset,
Sourcepub fn maybe_patch(
self,
value: Option<impl Into<Operation>>,
) -> PathItemBuilder<SetPatch<S>>where
S::Patch: IsUnset,
pub fn maybe_patch(
self,
value: Option<impl Into<Operation>>,
) -> PathItemBuilder<SetPatch<S>>where
S::Patch: IsUnset,
Sourcepub fn trace(self, value: impl Into<Operation>) -> PathItemBuilder<SetTrace<S>>where
S::Trace: IsUnset,
pub fn trace(self, value: impl Into<Operation>) -> PathItemBuilder<SetTrace<S>>where
S::Trace: IsUnset,
Sourcepub fn maybe_trace(
self,
value: Option<impl Into<Operation>>,
) -> PathItemBuilder<SetTrace<S>>where
S::Trace: IsUnset,
pub fn maybe_trace(
self,
value: Option<impl Into<Operation>>,
) -> PathItemBuilder<SetTrace<S>>where
S::Trace: IsUnset,
Sourcepub fn extensions(
self,
value: impl Into<Extensions>,
) -> PathItemBuilder<SetExtensions<S>>where
S::Extensions: IsUnset,
pub fn extensions(
self,
value: impl Into<Extensions>,
) -> PathItemBuilder<SetExtensions<S>>where
S::Extensions: IsUnset,
Sourcepub fn maybe_extensions(
self,
value: Option<impl Into<Extensions>>,
) -> PathItemBuilder<SetExtensions<S>>where
S::Extensions: IsUnset,
pub fn maybe_extensions(
self,
value: Option<impl Into<Extensions>>,
) -> PathItemBuilder<SetExtensions<S>>where
S::Extensions: IsUnset,
Trait Implementations§
Source§impl<S: IsComplete> From<PathItemBuilder<S>> for PathItem
impl<S: IsComplete> From<PathItemBuilder<S>> for PathItem
Source§fn from(builder: PathItemBuilder<S>) -> Self
fn from(builder: PathItemBuilder<S>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<S> Freeze for PathItemBuilder<S>
impl<S> RefUnwindSafe for PathItemBuilder<S>
impl<S> Send for PathItemBuilder<S>
impl<S> Sync for PathItemBuilder<S>
impl<S> Unpin for PathItemBuilder<S>
impl<S> UnwindSafe for PathItemBuilder<S>
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