pub struct EncoderConfig {
pub max_length: usize,
pub select_keys: Option<Vec<char>>,
pub auto_select_length: Option<usize>,
pub auto_select_pattern: Option<String>,
pub sources: Option<HashMap<String, NodeConfig>>,
pub conditions: Option<HashMap<String, EdgeConfig>>,
pub rules: Option<Vec<WordRule>>,
pub short_code: Option<Vec<ShortCodeConfig>>,
pub priority_short_codes: Option<Vec<(String, String, usize)>>,
}Fields§
§max_length: usize§select_keys: Option<Vec<char>>§auto_select_length: Option<usize>§auto_select_pattern: Option<String>§sources: Option<HashMap<String, NodeConfig>>§conditions: Option<HashMap<String, EdgeConfig>>§rules: Option<Vec<WordRule>>§short_code: Option<Vec<ShortCodeConfig>>§priority_short_codes: Option<Vec<(String, String, usize)>>Trait Implementations§
Source§impl Clone for EncoderConfig
impl Clone for EncoderConfig
Source§fn clone(&self) -> EncoderConfig
fn clone(&self) -> EncoderConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncoderConfig
impl Debug for EncoderConfig
Source§impl<'de> Deserialize<'de> for EncoderConfig
impl<'de> Deserialize<'de> for EncoderConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EncoderConfig
impl RefUnwindSafe for EncoderConfig
impl Send for EncoderConfig
impl Sync for EncoderConfig
impl Unpin for EncoderConfig
impl UnwindSafe for EncoderConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more