Enum deno_graph::source::LoadResponse
source · pub enum LoadResponse {
External {
specifier: ModuleSpecifier,
},
Module {
content: Arc<str>,
specifier: ModuleSpecifier,
maybe_headers: Option<HashMap<String, String>>,
},
}Expand description
The response that is expected from a loader’s .load() method.
The returned specifier is the final specifier. This can differ from the requested specifier (e.g. if a redirect was encountered when loading)
Variants§
External
Fields
§
specifier: ModuleSpecifierA module where the content is not available when building the graph, but
will be available at runtime. The module will be marked as
ModuleKind::External and no dependency analysis will be performed.
Module
Fields
§
specifier: ModuleSpecifierThe final specifier of the module.
A loaded module.
Trait Implementations§
source§impl Clone for LoadResponse
impl Clone for LoadResponse
source§fn clone(&self) -> LoadResponse
fn clone(&self) -> LoadResponse
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 LoadResponse
impl Debug for LoadResponse
source§impl<'de> Deserialize<'de> for LoadResponse
impl<'de> Deserialize<'de> for LoadResponse
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 PartialEq<LoadResponse> for LoadResponse
impl PartialEq<LoadResponse> for LoadResponse
source§fn eq(&self, other: &LoadResponse) -> bool
fn eq(&self, other: &LoadResponse) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for LoadResponse
impl Serialize for LoadResponse
impl Eq for LoadResponse
impl StructuralEq for LoadResponse
impl StructuralPartialEq for LoadResponse
Auto Trait Implementations§
impl RefUnwindSafe for LoadResponse
impl Send for LoadResponse
impl Sync for LoadResponse
impl Unpin for LoadResponse
impl UnwindSafe for LoadResponse
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.