pub enum QuestionStep {
Identifier,
IsMixture,
ComponentCount,
ComponentIdentifier,
ComponentFraction,
PhysicalForm,
SolutionConcentration,
IntendedUse,
OrganicInorganic,
FunctionalGroups,
}Expand description
The logical step a question belongs to.
Stored in ClassificationSession alongside
current_question so that answer() dispatches to the right state update
without inspecting language-specific prompt text.
Variants§
Identifier
Step 1 — main product identifier.
IsMixture
Step 2 — is the product a mixture?
ComponentCount
Step 3a-i — number of mixture components.
ComponentIdentifier
Step 3a-ii — CAS / name of the n-th mixture component.
ComponentFraction
Step 3a-iii — weight fraction of the current mixture component.
PhysicalForm
Step 3b-i — physical form (solid / powder / liquid / …).
SolutionConcentration
Step 3b-ii — solution concentration (only asked after PhysicalForm::Solution).
IntendedUse
Step 4 — intended end-use.
OrganicInorganic
Step 5 — organic or inorganic (only when SMILES is unavailable).
FunctionalGroups
Step 6 — functional groups (only for organic compounds without SMILES).
Trait Implementations§
Source§impl Clone for QuestionStep
impl Clone for QuestionStep
Source§fn clone(&self) -> QuestionStep
fn clone(&self) -> QuestionStep
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 QuestionStep
impl Debug for QuestionStep
Source§impl<'de> Deserialize<'de> for QuestionStep
impl<'de> Deserialize<'de> for QuestionStep
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
Source§impl PartialEq for QuestionStep
impl PartialEq for QuestionStep
Source§fn eq(&self, other: &QuestionStep) -> bool
fn eq(&self, other: &QuestionStep) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for QuestionStep
impl Serialize for QuestionStep
impl Copy for QuestionStep
impl Eq for QuestionStep
impl StructuralPartialEq for QuestionStep
Auto Trait Implementations§
impl Freeze for QuestionStep
impl RefUnwindSafe for QuestionStep
impl Send for QuestionStep
impl Sync for QuestionStep
impl Unpin for QuestionStep
impl UnsafeUnpin for QuestionStep
impl UnwindSafe for QuestionStep
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.