[][src]Struct dropshot::ApiEndpointParameter

pub struct ApiEndpointParameter {
    pub name: ApiEndpointParameterName,
    pub description: Option<String>,
    pub required: bool,
    pub schema: ApiSchemaGenerator,
    pub examples: Vec<String>,
}

ApiEndpointParameter represents the discrete path and query parameters for a given API endpoint. These are typically derived from the members of stucts used as parameters to handler functions.

Fields

name: ApiEndpointParameterNamedescription: Option<String>required: boolschema: ApiSchemaGeneratorexamples: Vec<String>

Implementations

impl ApiEndpointParameter[src]

pub fn new_named(
    loc: &ApiEndpointParameterLocation,
    name: String,
    description: Option<String>,
    required: bool,
    schema: ApiSchemaGenerator,
    examples: Vec<String>
) -> Self
[src]

pub fn new_body(
    description: Option<String>,
    required: bool,
    schema: ApiSchemaGenerator,
    examples: Vec<String>
) -> Self
[src]

Trait Implementations

impl Debug for ApiEndpointParameter[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,