pub enum SelectionReason {
Argument,
Environment,
Recorded,
OnlyFeature,
None,
}Expand description
Why a feature was selected.
Variants§
Argument
Named on the command line.
Environment
From the SPECIFY_FEATURE_DIRECTORY environment variable.
Recorded
Recorded in .specify/feature.json.
OnlyFeature
The project has exactly one feature.
None
Nothing was selected.
Trait Implementations§
Source§impl Clone for SelectionReason
impl Clone for SelectionReason
impl Copy for SelectionReason
Source§impl Debug for SelectionReason
impl Debug for SelectionReason
impl Eq for SelectionReason
Source§impl JsonSchema for SelectionReason
impl JsonSchema for SelectionReason
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for SelectionReason
impl PartialEq for SelectionReason
Source§impl Serialize for SelectionReason
impl Serialize for SelectionReason
impl StructuralPartialEq for SelectionReason
Auto Trait Implementations§
impl Freeze for SelectionReason
impl RefUnwindSafe for SelectionReason
impl Send for SelectionReason
impl Sync for SelectionReason
impl Unpin for SelectionReason
impl UnsafeUnpin for SelectionReason
impl UnwindSafe for SelectionReason
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