use std::fmt;
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[non_exhaustive]
pub enum PolicyLocation {
Rules,
Floor,
HttpHeader,
HttpQuery,
HttpBody,
HttpMasking,
}
impl fmt::Display for PolicyLocation {
fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
Self::Rules => formatter.write_str("rules"),
Self::Floor => formatter.write_str("floor"),
Self::HttpHeader => formatter.write_str("http header"),
Self::HttpQuery => formatter.write_str("http query"),
Self::HttpBody => formatter.write_str("http body"),
Self::HttpMasking => formatter.write_str("http masking"),
}
}
}