Struct radius_rust::protocol::dictionary::Dictionary
source · [−]pub struct Dictionary { /* private fields */ }Expand description
Represents RADIUS dictionary
Implementations
sourceimpl 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
sourceimpl Debug for Dictionary
impl Debug for Dictionary
sourceimpl Default for Dictionary
impl Default for Dictionary
sourcefn default() -> Dictionary
fn default() -> Dictionary
Returns the “default value” for a type. Read more
sourceimpl PartialEq<Dictionary> for Dictionary
impl PartialEq<Dictionary> for Dictionary
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &Dictionary) -> bool
fn ne(&self, other: &Dictionary) -> bool
This method tests for !=.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more