Struct cdoc_parser::code_ast::types::Solution
source · pub struct Solution {
pub placeholder: Option<CowStr>,
pub solution: CowStr,
}
Expand description
An exercise element with a placeholder and a solution
Fields§
§placeholder: Option<CowStr>
§solution: CowStr
Trait Implementations§
source§impl<'de> Deserialize<'de> for Solution
impl<'de> Deserialize<'de> for Solution
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
source§impl PartialEq<Solution> for Solution
impl PartialEq<Solution> for Solution
impl StructuralPartialEq for Solution
Auto Trait Implementations§
impl RefUnwindSafe for Solution
impl Send for Solution
impl Sync for Solution
impl Unpin for Solution
impl UnwindSafe for Solution
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