Skip to main content

AttributeValue

Trait AttributeValue 

Source
pub trait AttributeValue {
    // Required method
    fn get_attribute_value(&self, attr_name: &str, key: &str) -> Option<String>;

    // Provided method
    fn get_attribute_bool(&self, attr_name: &str, key: &str) -> bool { ... }
}
Expand description

Public trait for attribute value extraction

Required Methods§

Source

fn get_attribute_value(&self, attr_name: &str, key: &str) -> Option<String>

Provided Methods§

Source

fn get_attribute_bool(&self, attr_name: &str, key: &str) -> bool

Implementors§

Source§

impl<T: HasAttributes> AttributeValue for T