pub enum Entry {
Null,
Text(String),
Object(Map<String, Value>),
Array(Vec<Value>),
}Expand description
Text, a JSON object, a JSON array, or null.
State, instructions and criteria descriptions all take this shape. Numbers and booleans are not valid on their own; wrap them in an object.
Variants§
Null
No value. For a criterion, this leaves the label undescribed.
Text(String)
Plain text.
Object(Map<String, Value>)
A JSON object.
Array(Vec<Value>)
A JSON array.
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