[][src]Trait paperclip::v2::schema::Apiv2Operation

pub trait Apiv2Operation<T, R> {
    fn operation(
    ) -> Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>;
fn definitions() -> BTreeMap<String, DefaultSchemaRaw>; }

Represents a OpenAPI v2 operation convertible. This is auto-implemented by framework-specific macros:

NOTE: The type parameters specified here aren't used by the trait itself, but can be used for constraining stuff in framework-related impls.

Required methods

fn operation(
) -> Operation<Parameter<DefaultSchemaRaw>, Response<DefaultSchemaRaw>>

Returns the definition for this operation.

fn definitions() -> BTreeMap<String, DefaultSchemaRaw>

Returns the definitions used by this operation.

Loading content...

Implementors

impl<U, A, B, C, D, E, F, G, H, I, J, R, RV> Apiv2Operation<(A, B, C, D, E, F, G, H, I, J), RV> for U where
    A: OperationModifier,
    B: OperationModifier,
    C: OperationModifier,
    D: OperationModifier,
    E: OperationModifier,
    F: OperationModifier,
    G: OperationModifier,
    H: OperationModifier,
    I: OperationModifier,
    J: OperationModifier,
    R: Future<Output = RV>,
    RV: OperationModifier,
    U: Fn(A, B, C, D, E, F, G, H, I, J) -> R, 
[src]

impl<U, A, B, C, D, E, F, G, H, I, R, RV> Apiv2Operation<(A, B, C, D, E, F, G, H, I), RV> for U where
    A: OperationModifier,
    B: OperationModifier,
    C: OperationModifier,
    D: OperationModifier,
    E: OperationModifier,
    F: OperationModifier,
    G: OperationModifier,
    H: OperationModifier,
    I: OperationModifier,
    R: Future<Output = RV>,
    RV: OperationModifier,
    U: Fn(A, B, C, D, E, F, G, H, I) -> R, 
[src]

impl<U, A, B, C, D, E, F, G, H, R, RV> Apiv2Operation<(A, B, C, D, E, F, G, H), RV> for U where
    A: OperationModifier,
    B: OperationModifier,
    C: OperationModifier,
    D: OperationModifier,
    E: OperationModifier,
    F: OperationModifier,
    G: OperationModifier,
    H: OperationModifier,
    R: Future<Output = RV>,
    RV: OperationModifier,
    U: Fn(A, B, C, D, E, F, G, H) -> R, 
[src]

impl<U, A, B, C, D, E, F, G, R, RV> Apiv2Operation<(A, B, C, D, E, F, G), RV> for U where
    A: OperationModifier,
    B: OperationModifier,
    C: OperationModifier,
    D: OperationModifier,
    E: OperationModifier,
    F: OperationModifier,
    G: OperationModifier,
    R: Future<Output = RV>,
    RV: OperationModifier,
    U: Fn(A, B, C, D, E, F, G) -> R, 
[src]

impl<U, A, B, C, D, E, F, R, RV> Apiv2Operation<(A, B, C, D, E, F), RV> for U where
    A: OperationModifier,
    B: OperationModifier,
    C: OperationModifier,
    D: OperationModifier,
    E: OperationModifier,
    F: OperationModifier,
    R: Future<Output = RV>,
    RV: OperationModifier,
    U: Fn(A, B, C, D, E, F) -> R, 
[src]

impl<U, A, B, C, D, E, R, RV> Apiv2Operation<(A, B, C, D, E), RV> for U where
    A: OperationModifier,
    B: OperationModifier,
    C: OperationModifier,
    D: OperationModifier,
    E: OperationModifier,
    R: Future<Output = RV>,
    RV: OperationModifier,
    U: Fn(A, B, C, D, E) -> R, 
[src]

impl<U, A, B, C, D, R, RV> Apiv2Operation<(A, B, C, D), RV> for U where
    A: OperationModifier,
    B: OperationModifier,
    C: OperationModifier,
    D: OperationModifier,
    R: Future<Output = RV>,
    RV: OperationModifier,
    U: Fn(A, B, C, D) -> R, 
[src]

impl<U, A, B, C, R, RV> Apiv2Operation<(A, B, C), RV> for U where
    A: OperationModifier,
    B: OperationModifier,
    C: OperationModifier,
    R: Future<Output = RV>,
    RV: OperationModifier,
    U: Fn(A, B, C) -> R, 
[src]

impl<U, A, B, R, RV> Apiv2Operation<(A, B), RV> for U where
    A: OperationModifier,
    B: OperationModifier,
    R: Future<Output = RV>,
    RV: OperationModifier,
    U: Fn(A, B) -> R, 
[src]

impl<U, A, R, RV> Apiv2Operation<(A,), RV> for U where
    A: OperationModifier,
    R: Future<Output = RV>,
    RV: OperationModifier,
    U: Fn(A) -> R, 
[src]

impl<U, R, RV> Apiv2Operation<(), RV> for U where
    R: Future<Output = RV>,
    RV: OperationModifier,
    U: Fn() -> R, 
[src]

Loading content...