Struct deno_graph::GraphImport
source · [−]pub struct GraphImport {
pub referrer: ModuleSpecifier,
pub dependencies: BTreeMap<String, Dependency>,
}
Expand description
Provides a way for imports, through configuration, to be imported to the module graph without requiring the dependencies to be analyzed. This is intended to be used for importing type dependencies or other externally defined dependencies, like JSX runtimes.
Fields
referrer: ModuleSpecifier
The referring module specifier to be used to resolve relative dependencies from. This is typically the meta data file that defined the dependency, such as a configuration file.
dependencies: BTreeMap<String, Dependency>
A map of resolved dependencies, where the key is the value originally provided for the import and the value is the resolved dependency.
Implementations
sourceimpl GraphImport
impl GraphImport
Trait Implementations
sourceimpl Debug for GraphImport
impl Debug for GraphImport
sourceimpl Serialize for GraphImport
impl Serialize for GraphImport
Auto Trait Implementations
impl RefUnwindSafe for GraphImport
impl Send for GraphImport
impl Sync for GraphImport
impl Unpin for GraphImport
impl UnwindSafe for GraphImport
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more