pub struct ImportSpec {
pub raw: String,
pub is_relative: bool,
pub names: Vec<String>,
pub is_glob: bool,
}Expand description
A parsed import specifier.
Fields§
§raw: StringRaw specifier string (e.g. “std::collections::HashMap”, “./utils”, “numpy”).
is_relative: boolWhether this is a relative import (starts with ./ or ../).
names: Vec<String>The imported names, if specified (e.g. use foo::{bar, baz} → [“bar”, “baz”]).
Empty for glob/wildcard imports.
is_glob: boolTrue if this is a glob/wildcard import (e.g. use foo::*, from x import *).
Auto Trait Implementations§
impl Freeze for ImportSpec
impl RefUnwindSafe for ImportSpec
impl Send for ImportSpec
impl Sync for ImportSpec
impl Unpin for ImportSpec
impl UnsafeUnpin for ImportSpec
impl UnwindSafe for ImportSpec
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request