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§
sourcefn update_parameter(op: &mut DefaultOperationRaw)
fn update_parameter(op: &mut DefaultOperationRaw)
Update the parameters list in the given operation (if needed).
sourcefn update_response(_op: &mut DefaultOperationRaw)
fn update_response(_op: &mut DefaultOperationRaw)
Update the responses map in the given operation (if needed).
sourcefn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
fn update_definitions(map: &mut BTreeMap<String, DefaultSchemaRaw>)
Update the definitions map (if needed).
sourcefn update_security(op: &mut DefaultOperationRaw)
fn update_security(op: &mut DefaultOperationRaw)
Update the security map in the given operation (if needed).
sourcefn update_security_definitions(map: &mut BTreeMap<String, SecurityScheme>)
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.