pub struct TransformPluginProgramMetadata {
    pub comments: Option<PluginCommentsProxy>,
    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.

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

The archived version of the pointer metadata for this type.

Converts some archived metadata to the pointer metadata for itself.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Deserializes using the given deserializer

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type for metadata in pointers and references to Self.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more