pub struct ImportedReason<'a> {
    pub loc: Cow<'a, str>,
    pub module: RelativeModulePath<'a>,
    pub module_id: ModuleId,
    pub module_name: ModuleName<'a>,
    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: ModuleIdmodule_name: ModuleName<'a>type: ImportTypeuser_request: ImportString<'a>

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.