use super::*;
#[derive(Clone, Data, Debug, Eq, PartialEq)]
pub struct EtagConfig {
#[get(type(copy))]
pub(crate) strength: EtagStrength,
#[get(type(copy))]
pub(crate) min_body_bytes: usize,
pub(crate) exempt_prefixes: Vec<String>,
#[get(type(copy))]
pub(crate) enforce_if_match: bool,
}
pub struct EtagPlugin {
pub(crate) config: EtagConfig,
pub(crate) exempt_prefixes: Box<[String]>,
pub(crate) validator: Option<Arc<dyn EtagValidator>>,
pub(crate) precondition_failed_wire: Vec<u8>,
}
#[derive(Clone, Copy, Debug, Default)]
#[hyperlane::request_middleware(-72)]
pub struct EtagRequestHook;
#[derive(Clone, Copy, Debug, Default)]
#[hyperlane::response_middleware(-58)]
pub struct EtagResponseHook;