pub struct Generator {
pub trait_name: String,
pub ignored_attributes: Vec<String>,
pub external_attributes: HashMap<String, String>,
}Expand description
A code generator that transforms RADIUS dictionary definitions into type-safe Rust traits.
This generator produces a trait (e.g., Rfc2865Ext) that extends the base Packet struct
with getter and setter methods for every attribute defined in the dictionary.
Fields§
§trait_name: StringThe name of the trait to be generated (e.g., “Rfc2865Ext”).
ignored_attributes: Vec<String>Attributes that should be skipped during generation.
external_attributes: HashMap<String, String>Maps attribute names to external crate/module paths if they are defined elsewhere.
Implementations§
Auto Trait Implementations§
impl Freeze for Generator
impl RefUnwindSafe for Generator
impl Send for Generator
impl Sync for Generator
impl Unpin for Generator
impl UnwindSafe for Generator
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