pub struct ImportsConfig {
pub group_imports: bool,
pub preferred_import_order: Vec<String>,
pub import_granularity: String,
pub import_merge_behaviour: String,
pub allowed_import_prefixes: Vec<String>,
}Expand description
Configuration for the imports section
Fields§
§group_imports: bool§preferred_import_order: Vec<String>§import_granularity: String§import_merge_behaviour: String§allowed_import_prefixes: Vec<String>Trait Implementations§
Source§impl Clone for ImportsConfig
impl Clone for ImportsConfig
Source§fn clone(&self) -> ImportsConfig
fn clone(&self) -> ImportsConfig
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 ImportsConfig
impl Debug for ImportsConfig
Source§impl Default for ImportsConfig
impl Default for ImportsConfig
Source§impl<'de> Deserialize<'de> for ImportsConfigwhere
ImportsConfig: Default,
impl<'de> Deserialize<'de> for ImportsConfigwhere
ImportsConfig: Default,
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 Freeze for ImportsConfig
impl RefUnwindSafe for ImportsConfig
impl Send for ImportsConfig
impl Sync for ImportsConfig
impl Unpin for ImportsConfig
impl UnsafeUnpin for ImportsConfig
impl UnwindSafe for ImportsConfig
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