Skip to main content

apimock_routing/
strategy.rs

1use serde::Deserialize;
2
3#[derive(Clone, Deserialize)]
4pub enum Strategy {
5    FirstMatch,
6}
7
8impl Default for Strategy {
9    fn default() -> Self {
10        Self::FirstMatch
11    }
12}
13
14impl std::fmt::Display for Strategy {
15    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
16        match self {
17            Self::FirstMatch => write!(f, "first_match"),
18        }
19    }
20}