pub struct ___EmptyModule<'a> {Show 17 fields
pub assets: Option<Vec<Value>>,
pub built: bool,
pub cacheable: Fallible<bool>,
pub chunks: Option<Vec<ChunkId>>,
pub error_count: Option<u32>,
pub warning_count: Option<u32>,
pub failed: bool,
pub id: Fallible<Optional<ModuleId>>,
pub identifier: Option<ModuleIdentifier>,
pub name: Option<ModuleName>,
pub optional: bool,
pub prefetched: bool,
pub reasons: Option<Reasons<'a>>,
pub size: Option<SizeBytes>,
pub source: Optional<SourceText<'a>>,
pub profile: Option<Profile>,
pub modules: Option<Modules<'a>>,
}
Fields§
§assets: Option<Vec<Value>>
§built: bool
Indicates that the module went through loaders, Parsing, and Code Generation
cacheable: Fallible<bool>
§chunks: Option<Vec<ChunkId>>
§error_count: Option<u32>
§warning_count: Option<u32>
§failed: bool
§id: Fallible<Optional<ModuleId>>
Possibly a relic of the past? Also undocumented by webpack. ModuleIdentifier / identifier is a better unique name. Use that if possible.
identifier: Option<ModuleIdentifier>
§name: Option<ModuleName>
§optional: bool
§prefetched: bool
§reasons: Option<Reasons<'a>>
Every module also contains a list of reasons objects describing why that module was included in the dependency graph. Each “reason” is similar to the origins
size: Option<SizeBytes>
§source: Optional<SourceText<'a>>
§profile: Option<Profile>
§modules: Option<Modules<'a>>
Trait Implementations§
Source§impl<'a> Container for ___EmptyModule<'a>
impl<'a> Container for ___EmptyModule<'a>
type Value = Module<'a>
fn try_open(&mut self) -> Result<Self::Value, Box<dyn Error>>
fn open(&mut self) -> Self::Value
fn try_open_with_meta( &mut self, field_name: &'static str, ) -> Result<Self::Value, Box<dyn Error>>
fn open_with_meta(&mut self, field_name: &'static str) -> Self::Value
Source§impl<'a> Default for ___EmptyModule<'a>
impl<'a> Default for ___EmptyModule<'a>
Source§fn default() -> ___EmptyModule<'a>
fn default() -> ___EmptyModule<'a>
Returns the “default value” for a type. Read more
Source§impl<'de: 'a, 'a> Deserialize<'de> for ___EmptyModule<'a>
impl<'de: 'a, 'a> Deserialize<'de> for ___EmptyModule<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for ___EmptyModule<'a>
impl<'a> RefUnwindSafe for ___EmptyModule<'a>
impl<'a> !Send for ___EmptyModule<'a>
impl<'a> !Sync for ___EmptyModule<'a>
impl<'a> Unpin for ___EmptyModule<'a>
impl<'a> UnwindSafe for ___EmptyModule<'a>
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