Skip to main content

DocPathScalar

Trait DocPathScalar 

Source
pub trait DocPathScalar {
    // Required method
    fn describe_scalar(op: &mut Operation, path_param_names: &[&'static str]);
}
Expand description

Scalar/tuple path impl trait. Kept separate from DocPathParams to avoid overlap with the struct-form impl.

Required Methods§

Source

fn describe_scalar(op: &mut Operation, path_param_names: &[&'static str])

Append scalar/tuple path parameter(s) to op.parameters.

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<T1: PathScalar, T2: PathScalar> DocPathScalar for Path<(T1, T2)>

Source§

fn describe_scalar(op: &mut Operation, path_param_names: &[&'static str])

Source§

impl<T1: PathScalar, T2: PathScalar, T3: PathScalar> DocPathScalar for Path<(T1, T2, T3)>

Source§

fn describe_scalar(op: &mut Operation, path_param_names: &[&'static str])

Source§

impl<T1: PathScalar, T2: PathScalar, T3: PathScalar, T4: PathScalar> DocPathScalar for Path<(T1, T2, T3, T4)>

Source§

fn describe_scalar(op: &mut Operation, path_param_names: &[&'static str])

Source§

impl<T1: PathScalar, T2: PathScalar, T3: PathScalar, T4: PathScalar, T5: PathScalar> DocPathScalar for Path<(T1, T2, T3, T4, T5)>

Source§

fn describe_scalar(op: &mut Operation, path_param_names: &[&'static str])

Source§

impl<T1: PathScalar, T2: PathScalar, T3: PathScalar, T4: PathScalar, T5: PathScalar, T6: PathScalar> DocPathScalar for Path<(T1, T2, T3, T4, T5, T6)>

Source§

fn describe_scalar(op: &mut Operation, path_param_names: &[&'static str])

Source§

impl<T1: PathScalar, T2: PathScalar, T3: PathScalar, T4: PathScalar, T5: PathScalar, T6: PathScalar, T7: PathScalar> DocPathScalar for Path<(T1, T2, T3, T4, T5, T6, T7)>

Source§

fn describe_scalar(op: &mut Operation, path_param_names: &[&'static str])

Source§

impl<T1: PathScalar, T2: PathScalar, T3: PathScalar, T4: PathScalar, T5: PathScalar, T6: PathScalar, T7: PathScalar, T8: PathScalar> DocPathScalar for Path<(T1, T2, T3, T4, T5, T6, T7, T8)>

Source§

fn describe_scalar(op: &mut Operation, path_param_names: &[&'static str])

Source§

impl<T: PathScalar> DocPathScalar for Path<T>

Source§

fn describe_scalar(op: &mut Operation, path_param_names: &[&'static str])

Implementors§