MatchAction

Enumin aclfastly 0.13.1View source
pub enum MatchAction {
Allow,
Block,
Other(String),
}

MatchAction represents an action associated with an ACL prefix.

Variants

Allow

Allow prefix.

Block

Block prefix.

Other

Unexpected or new action.

0: String

Trait implementations

impl Debug for MatchAction

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

Parameters

self: &Self
f: &mut $crate::fmt::Formatter

Returns

$crate::fmt::Result

impl Deserialize for MatchAction

deserialize

View source
fn deserialize<D>(de: D) -> Result<Self, D::Error>
where
D: Deserializer<'de>,

Parameters

de: D

Returns

Result<Self, D::Error>

impl PartialEq for MatchAction

fn eq(&self, other: &Self) -> bool

Parameters

self: &Self
other: &Self

Returns

bool

impl Serialize for MatchAction

serialize

View source
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where
__S: Serializer,

Parameters

self: &Self
__serializer: __S

Returns

_serde::__private228::Result<__S::Ok, __S::Error>

Auto trait implementations

Blanket implementations