pub struct ExpandMacro {
pub lib: Utf8PathBuf,
pub env: Vec<(String, String)>,
pub current_dir: Option<String>,
pub data: ExpandMacroData,
}
Expand description
Represents a macro expansion request sent from the client.
Fields§
§lib: Utf8PathBuf
The path to the dynamic library containing the macro.
env: Vec<(String, String)>
Environment variables to set during macro expansion.
current_dir: Option<String>
The current working directory for the macro expansion.
data: ExpandMacroData
Macro expansion data, including the macro body, name and attributes.
Trait Implementations§
Source§impl Debug for ExpandMacro
impl Debug for ExpandMacro
Source§impl<'de> Deserialize<'de> for ExpandMacro
impl<'de> Deserialize<'de> for ExpandMacro
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 ExpandMacro
impl RefUnwindSafe for ExpandMacro
impl Send for ExpandMacro
impl Sync for ExpandMacro
impl Unpin for ExpandMacro
impl UnwindSafe for ExpandMacro
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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