pub struct TransformPluginProgramMetadata {
pub comments: Option<PluginCommentsProxy>,
pub source_map: PluginSourceMapProxy,
pub plugin_config: String,
pub transform_context: String,
}
Expand description
An arbitary metadata for given Program to run transform in plugin. These are information not directly attached to Program’s AST structures but required for certain transforms.
Fields
comments: Option<PluginCommentsProxy>
Proxy to the comments for the Program passed into plugin. This is a proxy to the actual data lives in the host. Only when plugin attempts to read these it’ll ask to the host to get values.
source_map: PluginSourceMapProxy
Proxy to the sourceMap for the Program passed into plugin. This is a proxy to the actual data lives in the host. Only when plugin attempts to read these it’ll ask to the host to get values.
plugin_config: String
Stringified JSON value for given plugin’s configuration. This is readonly. Changing value in plugin doesn’t affect host’s behavior.
transform_context: String
Stringified JSON value for relative context while running transform, like filenames. /// This is readonly. Changing value in plugin doesn’t affect host’s behavior.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TransformPluginProgramMetadata
impl Send for TransformPluginProgramMetadata
impl Sync for TransformPluginProgramMetadata
impl Unpin for TransformPluginProgramMetadata
impl UnwindSafe for TransformPluginProgramMetadata
Blanket Implementations
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more