pub struct Reason<'a> {
pub loc: Cow<'a, str>,
pub module: RelativeModulePath<'a>,
pub module_id: Option<ModuleId>,
pub module_name: ModuleName,
pub resolved_module: ModuleName,
pub module_identifier: ModuleIdentifier,
pub type: ImportType,
pub user_request: ImportString<'a>,
}Expand description
Metadata to describe the source of an import. Normally helps locate the upstream modules that required this one
Fields§
§loc: Cow<'a, str>§module: RelativeModulePath<'a>§module_id: Option<ModuleId>§module_name: ModuleName§resolved_module: ModuleName§module_identifier: ModuleIdentifier§type: ImportType§user_request: ImportString<'a>Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Reason<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Reason<'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 Reason<'a>
impl<'a> RefUnwindSafe for Reason<'a>
impl<'a> !Send for Reason<'a>
impl<'a> !Sync for Reason<'a>
impl<'a> Unpin for Reason<'a>
impl<'a> UnwindSafe for Reason<'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