Struct deno_graph::SyntheticModule [−][src]
pub struct SyntheticModule {
pub dependencies: BTreeMap<String, Resolved>,
pub maybe_cache_info: Option<CacheInfo>,
pub maybe_checksum: Option<String>,
pub maybe_source: Option<Arc<String>>,
pub media_type: MediaType,
pub specifier: ModuleSpecifier,
}
Expand description
A synthetic module is a module that is not an ES module. These modules serve two purposes, the ability to inject modules and their dependencies into the graph (like config files and TypeScript “types”) as well as provide a way for the graph to contain asserted modules, like JSON modules.
Fields
dependencies: BTreeMap<String, Resolved>
maybe_cache_info: Option<CacheInfo>
maybe_checksum: Option<String>
maybe_source: Option<Arc<String>>
media_type: MediaType
specifier: ModuleSpecifier
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for SyntheticModule
impl Send for SyntheticModule
impl Sync for SyntheticModule
impl Unpin for SyntheticModule
impl !UnwindSafe for SyntheticModule
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more