1 2 3 4 5 6 7 8 9 10 11 12 13 14
use std::borrow::Borrow; #[derive(Clone, Debug, Hash, Eq, PartialEq)] pub enum SerdeAttribute { Untagged, } impl Borrow<str> for SerdeAttribute { fn borrow(&self) -> &str { match self { SerdeAttribute::Untagged => "untagged", } } }