#[non_exhaustive]pub struct Discovered {
pub root: Arc<Path>,
pub components: Vec<DiscoveredDir>,
pub modules: Vec<DiscoveredDir>,
pub envs_dir: Option<Arc<Path>>,
pub root_hcl: Option<Arc<Path>>,
pub diagnostics: Vec<Diagnostic>,
}Expand description
Output of crate::discovery::Discoverer::discover.
Cheap to clone — every owned path field is wrapped in Arc.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.root: Arc<Path>Canonicalised workspace root supplied by the caller.
components: Vec<DiscoveredDir>Directories classified as components, sorted byte-lexicographically by relative path for reproducibility (per 11-discovery.md § 3.4).
modules: Vec<DiscoveredDir>Directories classified as modules. Same ordering as components.
envs_dir: Option<Arc<Path>><root>/environments/, if it exists. Used by the Terragrunt
resolver later to discover environment cascades.
root_hcl: Option<Arc<Path>>Workspace-level Terragrunt root (e.g. <root>/root.hcl or
<root>/terraform/root.hcl), if any.
diagnostics: Vec<Diagnostic>Non-fatal anomalies surfaced by the walker (broken symlinks, oversized files, ambiguous classifications, …).
Trait Implementations§
Source§impl Clone for Discovered
impl Clone for Discovered
Source§fn clone(&self) -> Discovered
fn clone(&self) -> Discovered
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 Discovered
impl Debug for Discovered
Source§impl PartialEq for Discovered
impl PartialEq for Discovered
Source§fn eq(&self, other: &Discovered) -> bool
fn eq(&self, other: &Discovered) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for Discovered
impl StructuralPartialEq for Discovered
Auto Trait Implementations§
impl Freeze for Discovered
impl RefUnwindSafe for Discovered
impl Send for Discovered
impl Sync for Discovered
impl Unpin for Discovered
impl UnsafeUnpin for Discovered
impl UnwindSafe for Discovered
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.