pub struct ShowData {
pub lemma_type: LemmaType,
pub prefilled: Option<RuleResultValue>,
pub suggestion: Option<RuleResultValue>,
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<RuleResultValue>§suggestion: Option<RuleResultValue>§needed_by_rules: Vec<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for ShowData
impl<'de> Deserialize<'de> for ShowData
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 ShowData
Auto Trait Implementations§
impl Freeze for ShowData
impl RefUnwindSafe for ShowData
impl Send for ShowData
impl Sync for ShowData
impl Unpin for ShowData
impl UnsafeUnpin for ShowData
impl UnwindSafe for ShowData
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