paperclip_core::v2

Trait OperationModifier

source
pub trait OperationModifier: Apiv2Schema + Sized {
    // Provided methods
    fn update_parameter(op: &mut DefaultOperationRaw) { ... }
    fn update_response(_op: &mut DefaultOperationRaw) { ... }
    fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>) { ... }
    fn update_security(op: &mut DefaultOperationRaw) { ... }
    fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>) { ... }
}
Expand description

Actix-specific trait for indicating that this entity can modify an operation and/or update the global map of definitions.

Provided Methods§

source

fn update_parameter(op: &mut DefaultOperationRaw)

Update the parameters list in the given operation (if needed).

source

fn update_response(_op: &mut DefaultOperationRaw)

Update the responses map in the given operation (if needed).

source

fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)

Update the definitions map (if needed).

source

fn update_security(op: &mut DefaultOperationRaw)

Update the security map in the given operation (if needed).

source

fn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)

Update the security definition map (if needed).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

source§

impl OperationModifier for bool

source§

impl OperationModifier for char

source§

impl OperationModifier for f32

source§

impl OperationModifier for f64

source§

impl OperationModifier for i8

source§

impl OperationModifier for i16

source§

impl OperationModifier for i32

source§

impl OperationModifier for i64

source§

impl OperationModifier for i128

source§

impl OperationModifier for isize

source§

impl OperationModifier for u8

source§

impl OperationModifier for u16

source§

impl OperationModifier for u32

source§

impl OperationModifier for u64

source§

impl OperationModifier for u128

source§

impl OperationModifier for usize

source§

impl OperationModifier for String

source§

impl OperationModifier for NaiveDateTime

source§

impl OperationModifier for Url

source§

impl OperationModifier for Uuid

source§

impl OperationModifier for Uuid

source§

impl OperationModifier for Bytes

source§

impl OperationModifier for HttpRequest

source§

impl OperationModifier for HttpResponse

source§

impl OperationModifier for Payload

source§

impl OperationModifier for Response<BoxBody>

source§

impl<'a> OperationModifier for &'a str

source§

impl<'a, T: OperationModifier> OperationModifier for &'a [T]

source§

impl<A> OperationModifier for Path<(A,)>
where A: Apiv2Schema,

source§

impl<A, B> OperationModifier for Path<(A, B)>
where A: Apiv2Schema, B: Apiv2Schema,

source§

impl<A, B, C> OperationModifier for Path<(A, B, C)>

source§

impl<A, B, C, D> OperationModifier for Path<(A, B, C, D)>

source§

impl<A, B, C, D, E> OperationModifier for Path<(A, B, C, D, E)>

source§

impl<A, B, C, D, E, F> OperationModifier for Path<(A, B, C, D, E, F)>

source§

impl<A, B, C, D, E, F, G> OperationModifier for Path<(A, B, C, D, E, F, G)>

source§

impl<A, B, C, D, E, F, G, H> OperationModifier for Path<(A, B, C, D, E, F, G, H)>

source§

impl<A, B, C, D, E, F, G, H, I> OperationModifier for Path<(A, B, C, D, E, F, G, H, I)>

source§

impl<A, B, C, D, E, F, G, H, I, J> OperationModifier for Path<(A, B, C, D, E, F, G, H, I, J)>

source§

impl<A, B, C, D, E, F, G, H, I, J, K> OperationModifier for Path<(A, B, C, D, E, F, G, H, I, J, K)>

source§

impl<A, B, C, D, E, F, G, H, I, J, K, L> OperationModifier for Path<(A, B, C, D, E, F, G, H, I, J, K, L)>

source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M> OperationModifier for Path<(A, B, C, D, E, F, G, H, I, J, K, L, M)>

source§

impl<T> OperationModifier for Option<T>

source§

impl<T> OperationModifier for Data<T>

source§

impl<T> OperationModifier for Json<T>
where T: Apiv2Schema,

source§

impl<T, E> OperationModifier for Result<T, E>

source§

impl<T: Clone> OperationModifier for ReqData<T>

source§

impl<T: TimeZone> OperationModifier for DateTime<T>

source§

impl<T: Apiv2Schema> OperationModifier for Form<T>

source§

impl<T: Apiv2Schema> OperationModifier for Path<T>

source§

impl<T: Apiv2Schema> OperationModifier for Query<T>

Implementors§