Closed LeonidKrutovsky closed 4 years ago
pub enum PropertyOperation {
Initialized,
Deleted,
Changed,
__Unknown__(String)
}
impl PropertyOperation {
pub fn new(s: &str) -> Self {
match s {
"Initialized" => Self::Initialized,
"Deleted" => Self::Deleted,
"Changed" => Self::Changed,
value => Self::__Unknown__(value.to_string()),
}
}
}