pub struct Import {
pub path: String,
pub symbols: Vec<String>,
pub kind: ImportKind,
}Expand description
A structured import declaration extracted from source code.
Fields§
§path: StringThe raw import path as written in source (e.g., “std::collections::HashMap”)
symbols: Vec<String>Specific symbols imported (empty = wildcard/module import)
kind: ImportKindThe kind of import
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Import
impl<'de> Deserialize<'de> for Import
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
impl Eq for Import
impl StructuralPartialEq for Import
Auto Trait Implementations§
impl Freeze for Import
impl RefUnwindSafe for Import
impl Send for Import
impl Sync for Import
impl Unpin for Import
impl UnsafeUnpin for Import
impl UnwindSafe for Import
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