pub struct OperationDefinition {
pub operation_id: &'static str,
pub method: &'static str,
pub path_template: &'static str,
pub path_params: &'static [&'static str],
}Expand description
OpenAPI-backed blocking operation client.
See also IriClient for the async variant.
Metadata for one OpenAPI operation.
Values are generated from openapi/openapi.json at build time.
Fields§
§operation_id: &'static strStable OpenAPI operation identifier.
method: &'static strUppercase HTTP method (for example GET, POST).
path_template: &'static strPath template, potentially containing {param} placeholders.
path_params: &'static [&'static str]Required path parameter names extracted from path_template.
Trait Implementations§
Source§impl Clone for OperationDefinition
impl Clone for OperationDefinition
Source§fn clone(&self) -> OperationDefinition
fn clone(&self) -> OperationDefinition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OperationDefinition
impl Debug for OperationDefinition
impl Copy for OperationDefinition
Auto Trait Implementations§
impl Freeze for OperationDefinition
impl RefUnwindSafe for OperationDefinition
impl Send for OperationDefinition
impl Sync for OperationDefinition
impl Unpin for OperationDefinition
impl UnsafeUnpin for OperationDefinition
impl UnwindSafe for OperationDefinition
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