Enum kvarn::cors::MethodAllowList

source ·
pub enum MethodAllowList<'a> {
    All,
    Selected(&'a [Method]),
}
Expand description

The allowed methods.

Variants§

§

All

All methods are allowed.

§

Selected(&'a [Method])

Only the methods in the slice are allowed.

Trait Implementations§

source§

impl<'a> Debug for MethodAllowList<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for MethodAllowList<'a>

§

impl<'a>