1 2 3 4 5 6
use crate::result::Result; pub trait DefaultValueConverter: Send + Sync { fn convert(&self, spec_type: &str, text: &str) -> Result<Option<String>>; fn reverse_convert(&self, spec_type: &str, native: &str) -> Result<String>; }