pub enum AnswerShape {
Named(NamedShape),
OneOf(Vec<String>),
}Expand description
The closed set of shapes that cannot carry an instruction.
Variants§
Named(NamedShape)
"number" or "boolean", spelled in config as those strings.
OneOf(Vec<String>)
A closed set of allowed answers, compared case-insensitively after trimming. The profile author controls both sides of the comparison, so anything not literally in the list is a failed vouch.
Implementations§
Trait Implementations§
Source§impl Clone for AnswerShape
impl Clone for AnswerShape
Source§fn clone(&self) -> AnswerShape
fn clone(&self) -> AnswerShape
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnswerShape
impl Debug for AnswerShape
Source§impl<'de> Deserialize<'de> for AnswerShape
impl<'de> Deserialize<'de> for AnswerShape
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
Auto Trait Implementations§
impl Freeze for AnswerShape
impl RefUnwindSafe for AnswerShape
impl Send for AnswerShape
impl Sync for AnswerShape
impl Unpin for AnswerShape
impl UnsafeUnpin for AnswerShape
impl UnwindSafe for AnswerShape
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