Struct radius_rust::protocol::dictionary::Dictionary
source · pub struct Dictionary { /* private fields */ }Expand description
Represents RADIUS dictionary
Implementations§
source§impl Dictionary
impl Dictionary
sourcepub fn from_str(dictionary_str: &str) -> Result<Dictionary, RadiusError>
pub fn from_str(dictionary_str: &str) -> Result<Dictionary, RadiusError>
Creates Dictionary from a string
sourcepub fn from_file(file_path: &str) -> Result<Dictionary, RadiusError>
pub fn from_file(file_path: &str) -> Result<Dictionary, RadiusError>
Creates Dictionary from a RADIUS dictionary file
sourcepub fn attributes(&self) -> &[DictionaryAttribute]
pub fn attributes(&self) -> &[DictionaryAttribute]
Returns parsed DictionaryAttributes
sourcepub fn values(&self) -> &[DictionaryValue]
pub fn values(&self) -> &[DictionaryValue]
Returns parsed DictionaryValues
sourcepub fn vendors(&self) -> &[DictionaryVendor]
pub fn vendors(&self) -> &[DictionaryVendor]
Returns parsed DictionaryVendors
Trait Implementations§
source§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
source§impl PartialEq<Dictionary> for Dictionary
impl PartialEq<Dictionary> for Dictionary
source§fn eq(&self, other: &Dictionary) -> bool
fn eq(&self, other: &Dictionary) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for Dictionary
Auto Trait Implementations§
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