pub enum Entry {
Null,
Bool(bool),
Number(f64),
Str(String),
Seq(Vec<Entry>),
Map(Vec<(String, Entry)>),
}Expand description
An authored value: the payload of state, instructions, and criteria entries.
Variants§
Null
Absent/undescribed. On choice options and score levels this means “undescribed”
(D3); on instructions it is equivalent to omitting the key (D4).
Bool(bool)
Boolean inside a structured entry.
Number(f64)
Number inside a structured entry (finite only — non-finite values are rejected at parse time).
Str(String)
Plain text — the common case for rubric text.
Seq(Vec<Entry>)
Ordered array.
Map(Vec<(String, Entry)>)
Insertion-ordered mapping. May contain duplicate keys as parsed; the authoring validation rejects duplicates at spec-bearing levels with a positioned error.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Entry
impl<'de> Deserialize<'de> for Entry
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 Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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