#[non_exhaustive]pub enum ModuleSource {
Local(Arc<str>),
Registry(Arc<str>),
Git(Arc<str>),
External(Arc<str>),
}Expand description
Where a module "x" { source = "..." } call points.
Only ModuleSource::Local is resolvable source-only by the parser;
other variants are captured so the dependency-graph phase can emit a
row in modules.parquet even when the body is not walked.
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.
Local(Arc<str>)
Local path source (./... or ../...).
Registry(Arc<str>)
Terraform registry address (e.g. terraform-aws-modules/eks/aws).
Git(Arc<str>)
Git source (git::https://...).
External(Arc<str>)
Anything else — captured verbatim.
Implementations§
Trait Implementations§
Source§impl Clone for ModuleSource
impl Clone for ModuleSource
Source§fn clone(&self) -> ModuleSource
fn clone(&self) -> ModuleSource
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 ModuleSource
impl Debug for ModuleSource
Source§impl<'de> Deserialize<'de> for ModuleSource
impl<'de> Deserialize<'de> for ModuleSource
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 Hash for ModuleSource
impl Hash for ModuleSource
Source§impl PartialEq for ModuleSource
impl PartialEq for ModuleSource
Source§fn eq(&self, other: &ModuleSource) -> bool
fn eq(&self, other: &ModuleSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModuleSource
impl Serialize for ModuleSource
impl Eq for ModuleSource
impl StructuralPartialEq for ModuleSource
Auto Trait Implementations§
impl Freeze for ModuleSource
impl RefUnwindSafe for ModuleSource
impl Send for ModuleSource
impl Sync for ModuleSource
impl Unpin for ModuleSource
impl UnsafeUnpin for ModuleSource
impl UnwindSafe for ModuleSource
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.