pub struct SpecOptions {
pub base: Options,
pub facts: Option<Facts>,
pub fonts: Vec<Arc<[u8]>>,
pub templates: Vec<Value>,
pub theme: Option<Value>,
}Expand description
What a spec’s diagnosis takes besides the text. As JSON:
{fix?, text?, excerpt?, limit?, facts?, templates?, theme?}; any other field is refused.
Fields§
§base: OptionsWhat every diagnosis takes.
facts: Option<Facts>Facts about the files the spec names. With them the spec is compiled; without, it is compiled only when it names no files.
fonts: Vec<Arc<[u8]>>Font files for text that must fit, in fallback order. Not read from JSON.
templates: Vec<Value>Node templates the spec may name, by their header ids.
theme: Option<Value>A theme replacing the one the spec names.
Trait Implementations§
Source§impl Clone for SpecOptions
impl Clone for SpecOptions
Source§impl Debug for SpecOptions
impl Debug for SpecOptions
Source§impl Default for SpecOptions
impl Default for SpecOptions
Source§impl<'de> Deserialize<'de> for SpecOptions
impl<'de> Deserialize<'de> for SpecOptions
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 SpecOptions
impl Freeze for SpecOptionswhere
*const LeafNode<String, MediaFacts> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, MediaFacts)>>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<Arc<[u8]>>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for SpecOptions
impl RefUnwindSafe for SpecOptions
impl Send for SpecOptionswhere
NodeRef<Owned, String, MediaFacts, LeafOrInternal>: Send,
BoxRaw<(String, MediaFacts)>: Send,
NodeRef<Owned, String, String, LeafOrInternal>: Send,
BoxRaw<(String, String)>: Send,
RawVecInner: Send,
Arc<[u8]>: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
impl Sync for SpecOptionswhere
NodeRef<Owned, String, MediaFacts, LeafOrInternal>: Sync,
BoxRaw<(String, MediaFacts)>: Sync,
NodeRef<Owned, String, String, LeafOrInternal>: Sync,
BoxRaw<(String, String)>: Sync,
RawVecInner: Sync,
Arc<[u8]>: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
impl Unpin for SpecOptions
impl UnsafeUnpin for SpecOptionswhere
*const LeafNode<String, MediaFacts> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, MediaFacts)>>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Arc<[u8]>>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for SpecOptionswhere
BTreeMap<String, MediaFacts>: UnwindSafe,
BTreeMap<String, String>: UnwindSafe,
RawVecInner: UnwindSafe,
Arc<[u8]>: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
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