pub struct Endpoint {
pub path: String,
pub method: String,
pub operation_id: Option<String>,
pub summary: Option<String>,
pub tags: Vec<String>,
pub request_schema_ref: Option<String>,
pub response_schema_ref: Option<String>,
}Expand description
A resolved endpoint with its request/response schema names.
Fields§
§path: StringThe URL path (e.g. /create-secret).
method: StringThe HTTP method in lowercase (e.g. post, get).
operation_id: Option<String>The operationId declared in the spec, if any.
summary: Option<String>A human-readable summary from the spec.
Tags associated with this operation.
request_schema_ref: Option<String>The schema name extracted from the request body $ref, if present.
response_schema_ref: Option<String>The schema name extracted from the response $ref, if present.
Trait Implementations§
impl Eq for Endpoint
impl StructuralPartialEq for Endpoint
Auto Trait Implementations§
impl Freeze for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnsafeUnpin for Endpoint
impl UnwindSafe for Endpoint
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.