Struct deno_graph::Dependency
source · pub struct Dependency {
pub maybe_code: Resolution,
pub maybe_type: Resolution,
pub is_dynamic: bool,
pub maybe_assert_type: Option<String>,
pub imports: Vec<Import>,
}Fields§
§maybe_code: Resolution§maybe_type: Resolution§is_dynamic: bool§maybe_assert_type: Option<String>§imports: Vec<Import>Implementations§
source§impl Dependency
impl Dependency
sourcepub fn get_code(&self) -> Option<&ModuleSpecifier>
pub fn get_code(&self) -> Option<&ModuleSpecifier>
Optionally return the module specifier in the module graph that points to the “code” dependency in the graph.
sourcepub fn get_type(&self) -> Option<&ModuleSpecifier>
pub fn get_type(&self) -> Option<&ModuleSpecifier>
Optionally return the module specifier in the module graph that points to the type only dependency in the graph.
Trait Implementations§
source§impl Clone for Dependency
impl Clone for Dependency
source§fn clone(&self) -> Dependency
fn clone(&self) -> Dependency
Returns a copy of the value. Read more
1.0.0 · 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 Dependency
impl Debug for Dependency
source§impl Default for Dependency
impl Default for Dependency
source§fn default() -> Dependency
fn default() -> Dependency
Returns the “default value” for a type. Read more