pub struct Dictionary {
pub attributes: Vec<DictionaryAttribute>,
pub values: Vec<DictionaryValue>,
pub vendors: Vec<DictionaryVendor>,
}Expand description
Represents a complete RADIUS dictionary containing standard attributes, values for enumerated types, and vendor-specific definitions.
Fields§
§attributes: Vec<DictionaryAttribute>List of standard (non-vendor) RADIUS attributes.
values: Vec<DictionaryValue>Enumerated value mappings for attributes (e.g., Service-Type values).
vendors: Vec<DictionaryVendor>Vendor definitions including their unique VSAs.
Implementations§
Source§impl Dictionary
impl Dictionary
Sourcepub fn merge(
d1: &Dictionary,
d2: &Dictionary,
) -> Result<Dictionary, DictionaryError>
pub fn merge( d1: &Dictionary, d2: &Dictionary, ) -> Result<Dictionary, DictionaryError>
Merges two dictionaries into a single combined dictionary.
This performs strict validation to ensure there are no collisions between attribute names, OIDs, or vendor definitions.
§Errors
Returns DictionaryError::Conflict if:
- Standard attribute names or OIDs collide.
- Vendor IDs or names are inconsistent between dictionaries.
- Attributes within a specific vendor collide.
Trait Implementations§
Source§impl Clone for Dictionary
impl Clone for Dictionary
Source§fn clone(&self) -> Dictionary
fn clone(&self) -> Dictionary
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 Dictionary
impl Debug for Dictionary
Source§impl Default for Dictionary
impl Default for Dictionary
Source§fn default() -> Dictionary
fn default() -> Dictionary
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Dictionary
impl RefUnwindSafe for Dictionary
impl Send for Dictionary
impl Sync for Dictionary
impl Unpin for Dictionary
impl UnwindSafe for Dictionary
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