pub struct ImportResolutionConfig {
pub max_search_depth: usize,
pub resolve_relative_imports: bool,
pub resolve_absolute_imports: bool,
pub exclude_stdlib_imports: bool,
pub path_mappings: HashMap<String, String>,
}Expand description
Configuration for import resolution
Fields§
§max_search_depth: usizeMaximum search depth for import resolution
resolve_relative_imports: boolWhether to resolve relative imports
resolve_absolute_imports: boolWhether to resolve absolute imports
exclude_stdlib_imports: boolWhether to exclude standard library imports
path_mappings: HashMap<String, String>Custom import path mappings
Trait Implementations§
Source§impl Clone for ImportResolutionConfig
impl Clone for ImportResolutionConfig
Source§fn clone(&self) -> ImportResolutionConfig
fn clone(&self) -> ImportResolutionConfig
Returns a duplicate 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 ImportResolutionConfig
impl Debug for ImportResolutionConfig
Source§impl Default for ImportResolutionConfig
impl Default for ImportResolutionConfig
Source§impl<'de> Deserialize<'de> for ImportResolutionConfig
impl<'de> Deserialize<'de> for ImportResolutionConfig
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 for ImportResolutionConfig
impl PartialEq for ImportResolutionConfig
Source§impl Serialize for ImportResolutionConfig
impl Serialize for ImportResolutionConfig
impl StructuralPartialEq for ImportResolutionConfig
Auto Trait Implementations§
impl Freeze for ImportResolutionConfig
impl RefUnwindSafe for ImportResolutionConfig
impl Send for ImportResolutionConfig
impl Sync for ImportResolutionConfig
impl Unpin for ImportResolutionConfig
impl UnwindSafe for ImportResolutionConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more