pub struct GeneratorMetadata {
pub version: Option<String>,
pub description: Option<String>,
pub min_language_version: Option<String>,
pub features: Vec<String>,
pub custom: HashMap<String, String>,
}Expand description
Metadata about a code generator
Contains additional information about generator capabilities and configuration.
Fields§
§version: Option<String>Generator version
description: Option<String>Description of what this generator produces
min_language_version: Option<String>Minimum language version required (e.g., “1.70” for Rust)
features: Vec<String>List of supported features
custom: HashMap<String, String>Additional custom metadata
Implementations§
Source§impl GeneratorMetadata
impl GeneratorMetadata
Sourcepub fn with_version(self, version: impl Into<String>) -> Self
pub fn with_version(self, version: impl Into<String>) -> Self
Set version
Sourcepub fn with_description(self, description: impl Into<String>) -> Self
pub fn with_description(self, description: impl Into<String>) -> Self
Set description
Sourcepub fn with_min_language_version(self, version: impl Into<String>) -> Self
pub fn with_min_language_version(self, version: impl Into<String>) -> Self
Set minimum language version
Sourcepub fn with_feature(self, feature: impl Into<String>) -> Self
pub fn with_feature(self, feature: impl Into<String>) -> Self
Add a feature
Trait Implementations§
Source§impl Clone for GeneratorMetadata
impl Clone for GeneratorMetadata
Source§fn clone(&self) -> GeneratorMetadata
fn clone(&self) -> GeneratorMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeneratorMetadata
impl Debug for GeneratorMetadata
Source§impl Default for GeneratorMetadata
impl Default for GeneratorMetadata
Source§fn default() -> GeneratorMetadata
fn default() -> GeneratorMetadata
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GeneratorMetadata
impl RefUnwindSafe for GeneratorMetadata
impl Send for GeneratorMetadata
impl Sync for GeneratorMetadata
impl Unpin for GeneratorMetadata
impl UnsafeUnpin for GeneratorMetadata
impl UnwindSafe for GeneratorMetadata
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