pub enum PluginPayload {
WordSet {
words: Vec<String>,
},
CanonicalMap {
entries: Vec<MapEntry>,
},
MultiwordMap {
entries: Vec<MapEntry>,
},
RankedWords {
entries: Vec<RankedEntry>,
},
ProtectedSpellings {
entries: Vec<MapEntry>,
},
}Expand description
Supported plugin payload values.
Variants§
WordSet
Case-insensitive word membership.
CanonicalMap
Canonical spellings keyed by lowercase lookup keys.
MultiwordMap
Canonical spellings keyed by normalized multiword phrases.
RankedWords
Ranked words keyed by lowercase lookup keys.
Fields
§
entries: Vec<RankedEntry>Stored ranked entries.
ProtectedSpellings
Protected spellings keyed by lowercase lookup keys.
Implementations§
Trait Implementations§
Source§impl Clone for PluginPayload
impl Clone for PluginPayload
Source§impl Debug for PluginPayload
impl Debug for PluginPayload
Source§impl<'de> Deserialize<'de> for PluginPayload
impl<'de> Deserialize<'de> for PluginPayload
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
impl Eq for PluginPayload
Source§impl PartialEq for PluginPayload
impl PartialEq for PluginPayload
Source§impl Serialize for PluginPayload
impl Serialize for PluginPayload
impl StructuralPartialEq for PluginPayload
Auto Trait Implementations§
impl Forget for PluginPayload
impl Freeze for PluginPayload
impl Move for PluginPayload
impl RefUnwindSafe for PluginPayload
impl Send for PluginPayload
impl Sync for PluginPayload
impl Unpin for PluginPayload
impl UnsafeUnpin for PluginPayload
impl UnwindSafe for PluginPayload
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