Skip to main content

AsAttributes

Trait AsAttributes 

Source
pub trait AsAttributes {
    // Required method
    fn as_attributes(&self) -> HashMap<String, String>;

    // Provided method
    fn hash(&self, key: &Key) -> Vec<(String, Result<Mac, Error>)> { ... }
}
Expand description

An item/collection attributes.

Required Methods§

Provided Methods§

Source

fn hash(&self, key: &Key) -> Vec<(String, Result<Mac, Error>)>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<K, V> AsAttributes for &BTreeMap<K, V>
where K: AsRef<str>, V: AsRef<str>,

Source§

impl<K, V> AsAttributes for &Vec<(K, V)>
where K: AsRef<str>, V: AsRef<str>,

Source§

impl<K, V> AsAttributes for &HashMap<K, V>
where K: AsRef<str>, V: AsRef<str>,

Source§

impl<K, V> AsAttributes for &[(K, V)]
where K: AsRef<str>, V: AsRef<str>,

Source§

impl<K, V> AsAttributes for BTreeMap<K, V>
where K: AsRef<str>, V: AsRef<str>,

Source§

impl<K, V> AsAttributes for Vec<(K, V)>
where K: AsRef<str>, V: AsRef<str>,

Source§

impl<K, V> AsAttributes for HashMap<K, V>
where K: AsRef<str>, V: AsRef<str>,

Source§

impl<K, V> AsAttributes for [(K, V)]
where K: AsRef<str>, V: AsRef<str>,

Source§

impl<K, V, const N: usize> AsAttributes for &[(K, V); N]
where K: AsRef<str>, V: AsRef<str>,

Source§

impl<K, V, const N: usize> AsAttributes for [(K, V); N]
where K: AsRef<str>, V: AsRef<str>,

Implementors§