pub struct DataEntry {
pub lemma_type: LemmaType,
pub prefilled: Option<LiteralValue>,
pub suggestion: Option<LiteralValue>,
pub needed_by_rules: Vec<String>,
}Expand description
One data entry in a Show.
A named struct instead of a tuple so JSON-native consumers (TypeScript, Python, …)
get stable field names. prefilled is a spec literal or literal with binding;
suggestion is a -> suggest ... hint only.
Fields§
§lemma_type: LemmaType§prefilled: Option<LiteralValue>§suggestion: Option<LiteralValue>§needed_by_rules: Vec<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for DataEntry
impl<'de> Deserialize<'de> for DataEntry
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 StructuralPartialEq for DataEntry
Auto Trait Implementations§
impl Freeze for DataEntry
impl RefUnwindSafe for DataEntry
impl Send for DataEntry
impl Sync for DataEntry
impl Unpin for DataEntry
impl UnsafeUnpin for DataEntry
impl UnwindSafe for DataEntry
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