pub struct GeneratedOperationDescriptor {Show 13 fields
pub operation_id: &'static str,
pub method: &'static str,
pub path: &'static str,
pub tag: &'static str,
pub has_request_body: bool,
pub summary: Option<&'static str>,
pub description: Option<&'static str>,
pub primary_response_schema: Option<&'static str>,
pub primary_success_status: u16,
pub parameters: &'static [GeneratedParameterDescriptor],
pub request_body: Option<GeneratedRequestBodyDescriptor>,
pub requires_auth: bool,
pub responses: &'static [GeneratedResponseDescriptor],
}Expand description
Generated operation descriptor metadata.
Fields§
§operation_id: &'static strUnique operation identifier.
method: &'static strHTTP method.
path: &'static strPath template from the contract.
tag: &'static strPrimary API tag.
has_request_body: boolWhether the operation accepts a request body.
summary: Option<&'static str>Short summary from the contract.
description: Option<&'static str>Detailed description from the contract.
primary_response_schema: Option<&'static str>Schema name for the primary success response when present.
primary_success_status: u16Primary success status code.
parameters: &'static [GeneratedParameterDescriptor]Contract parameter descriptors.
request_body: Option<GeneratedRequestBodyDescriptor>Contract request-body descriptor.
requires_auth: boolWhether the operation requires authorization.
responses: &'static [GeneratedResponseDescriptor]Documented response descriptors.
Trait Implementations§
Source§impl Clone for GeneratedOperationDescriptor
impl Clone for GeneratedOperationDescriptor
Source§fn clone(&self) -> GeneratedOperationDescriptor
fn clone(&self) -> GeneratedOperationDescriptor
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 GeneratedOperationDescriptor
impl Debug for GeneratedOperationDescriptor
Source§impl PartialEq for GeneratedOperationDescriptor
impl PartialEq for GeneratedOperationDescriptor
Source§fn eq(&self, other: &GeneratedOperationDescriptor) -> bool
fn eq(&self, other: &GeneratedOperationDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for GeneratedOperationDescriptor
impl Eq for GeneratedOperationDescriptor
impl StructuralPartialEq for GeneratedOperationDescriptor
Auto Trait Implementations§
impl Freeze for GeneratedOperationDescriptor
impl RefUnwindSafe for GeneratedOperationDescriptor
impl Send for GeneratedOperationDescriptor
impl Sync for GeneratedOperationDescriptor
impl Unpin for GeneratedOperationDescriptor
impl UnsafeUnpin for GeneratedOperationDescriptor
impl UnwindSafe for GeneratedOperationDescriptor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self with key and returns true if they are equal.