pub struct OperationDescriptorSeed {Show 13 fields
pub has_request_body: bool,
pub method: String,
pub operation_id: String,
pub parameters: Vec<ParameterDescriptorSeed>,
pub path: String,
pub primary_response_schema: Option<String>,
pub primary_success_status: u16,
pub request_body: Option<RequestBodyDescriptorSeed>,
pub requires_auth: bool,
pub responses: Vec<ResponseDescriptorSeed>,
pub tag: String,
pub summary: Option<String>,
pub description: Option<String>,
}Expand description
Operation descriptor seed before rendering the generated metadata module.
Fields§
§has_request_body: boolWhether the operation accepts a request body.
method: StringHTTP method.
operation_id: StringUnique operation identifier.
parameters: Vec<ParameterDescriptorSeed>Parameter descriptors for the operation.
path: StringPath template from the contract.
primary_response_schema: Option<String>Primary success response schema when present.
primary_success_status: u16Primary success status code.
request_body: Option<RequestBodyDescriptorSeed>Request-body descriptor when present.
requires_auth: boolWhether the operation requires authorization.
responses: Vec<ResponseDescriptorSeed>Documented response descriptors.
tag: StringPrimary API tag.
summary: Option<String>Short summary from the OpenAPI document.
description: Option<String>Detailed description from the OpenAPI document.
Trait Implementations§
Source§impl Clone for OperationDescriptorSeed
impl Clone for OperationDescriptorSeed
Source§fn clone(&self) -> OperationDescriptorSeed
fn clone(&self) -> OperationDescriptorSeed
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 OperationDescriptorSeed
impl Debug for OperationDescriptorSeed
Source§impl PartialEq for OperationDescriptorSeed
impl PartialEq for OperationDescriptorSeed
impl Eq for OperationDescriptorSeed
impl StructuralPartialEq for OperationDescriptorSeed
Auto Trait Implementations§
impl Freeze for OperationDescriptorSeed
impl RefUnwindSafe for OperationDescriptorSeed
impl Send for OperationDescriptorSeed
impl Sync for OperationDescriptorSeed
impl Unpin for OperationDescriptorSeed
impl UnsafeUnpin for OperationDescriptorSeed
impl UnwindSafe for OperationDescriptorSeed
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.