pub struct RawImport {
pub source: String,
pub symbols: Vec<RawSymbol>,
pub is_default: bool,
pub is_namespace: bool,
pub line: usize,
}Expand description
A raw import statement
Fields§
§source: StringThe import path (e.g., “./utils”, “lodash”, “crate::utils”)
symbols: Vec<RawSymbol>Symbols being imported
is_default: boolIs this a default import?
is_namespace: boolIs this a namespace import (import * as)?
line: usizeLine number where this import appears
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RawImport
impl<'de> Deserialize<'de> for RawImport
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 RawImport
impl RefUnwindSafe for RawImport
impl Send for RawImport
impl Sync for RawImport
impl Unpin for RawImport
impl UnwindSafe for RawImport
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