pub struct OperationBuilder { /* private fields */ }Expand description
Builder for operations
Implementations§
Source§impl OperationBuilder
impl OperationBuilder
pub fn new() -> Self
pub fn summary(self, summary: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
pub fn operation_id(self, id: impl Into<String>) -> Self
pub fn tag(self, tag: impl Into<String>) -> Self
pub fn parameter(self, parameter: Parameter) -> Self
pub fn request_body(self, body: RequestBody) -> Self
pub fn response(self, status: impl Into<String>, response: Response) -> Self
pub fn security(self, requirement: SecurityRequirement) -> Self
pub fn build(self) -> Operation
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OperationBuilder
impl RefUnwindSafe for OperationBuilder
impl Send for OperationBuilder
impl Sync for OperationBuilder
impl Unpin for OperationBuilder
impl UnsafeUnpin for OperationBuilder
impl UnwindSafe for OperationBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<R, D> DepsPresent<D> for R
Source§impl<T> Injectable for T
impl<T> Injectable for T
Source§fn type_id_of() -> TypeIdwhere
Self: Sized,
fn type_id_of() -> TypeIdwhere
Self: Sized,
Returns the TypeId of this type (for internal use)
Source§fn type_name_of() -> &'static strwhere
Self: Sized,
fn type_name_of() -> &'static strwhere
Self: Sized,
Returns the type name for debugging