#[non_exhaustive]pub enum ClassificationReason {
TerragruntInclude,
BackendBlock,
HasResources,
ModuleGlob,
VariablesOnly,
EnvironmentsDir,
DataOnly,
Unknown,
}Expand description
Why the classifier picked the kind it did. Surfaced in
Discovered.diagnostics and in CLI verbose output for auditability.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TerragruntInclude
terragrunt.hcl containing an include block.
BackendBlock
.tf file declaring terraform { backend "..." {} }.
HasResources
.tf file declaring at least one resource/data block, and the
dir does not match any module_glob.
ModuleGlob
Path matched the user-configured (or default) module_glob.
VariablesOnly
.tf files declared variable blocks but no resource/data
blocks (a common library-module shape).
EnvironmentsDir
The directory is named environments and lives directly under the
workspace root.
DataOnly
The dir has only files / data / READMEs that we don’t parse.
Unknown
Could not classify — emitted alongside DirKind::Other.
Trait Implementations§
Source§impl Clone for ClassificationReason
impl Clone for ClassificationReason
Source§fn clone(&self) -> ClassificationReason
fn clone(&self) -> ClassificationReason
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 ClassificationReason
impl Debug for ClassificationReason
Source§impl Hash for ClassificationReason
impl Hash for ClassificationReason
Source§impl PartialEq for ClassificationReason
impl PartialEq for ClassificationReason
Source§fn eq(&self, other: &ClassificationReason) -> bool
fn eq(&self, other: &ClassificationReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ClassificationReason
impl Eq for ClassificationReason
impl StructuralPartialEq for ClassificationReason
Auto Trait Implementations§
impl Freeze for ClassificationReason
impl RefUnwindSafe for ClassificationReason
impl Send for ClassificationReason
impl Sync for ClassificationReason
impl Unpin for ClassificationReason
impl UnsafeUnpin for ClassificationReason
impl UnwindSafe for ClassificationReason
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.