pub fn deserialize_glob_pattern<'de, D>(deserializer: D) -> Result<glob::Pattern, D::Error>
where D: Deserializer<'de>
{
let s = String::deserialize(deserializer);
glob::Pattern::new(s)
.ok_or_else(|| D::Error::Custom("invalid glob pattern: {:?}", s))
}
#[derive(Debug, Clone, Deserialize)]
pub struct SpecialPath {
#[serde(deserialize_with = "deserialize_glob_pattern")]
pub pattern: glob::Pattern,
pub handling: SpecialHandling,
}