pub struct TemplateOptions {
pub base: Options,
pub data: Option<Value>,
pub templates: Vec<Value>,
}Expand description
What a template’s diagnosis takes besides the text. As JSON:
{fix?, text?, excerpt?, limit?, data?, templates?}; any other field is refused.
Fields§
§base: OptionsWhat every diagnosis takes.
data: Option<Value>Data to bind the template to; sample data when absent.
templates: Vec<Value>Node templates the template may name, by their header ids.
Trait Implementations§
Source§impl Clone for TemplateOptions
impl Clone for TemplateOptions
Source§impl Debug for TemplateOptions
impl Debug for TemplateOptions
Source§impl Default for TemplateOptions
impl Default for TemplateOptions
Source§impl<'de> Deserialize<'de> for TemplateOptions
impl<'de> Deserialize<'de> for TemplateOptions
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for TemplateOptions
impl Freeze for TemplateOptionswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for TemplateOptions
impl RefUnwindSafe for TemplateOptions
impl Send for TemplateOptions
impl Sync for TemplateOptions
impl Unpin for TemplateOptions
impl UnsafeUnpin for TemplateOptionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for TemplateOptions
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