Retrieve

Trait Retrieve 

Source
pub trait Retrieve<'a, T> {
    // Required method
    fn retrieve(&'a self, key: &str) -> Option<T>;
}
Expand description

Artificial trait implemented for FieldTable to allow optional retrieval of inferred, typed values from the underlying map.

Required Methods§

Source

fn retrieve(&'a self, key: &str) -> Option<T>

Optionally retrieves a value of type T inferred from the value stored under the given key, provided the key is set and a value of type T can be inferred from its value.

Implementations on Foreign Types§

Source§

impl<'a, T> Retrieve<'a, T> for FieldTable
where AMQPValue: Coerce<'a, T>,

Implements Retrieve for every type T for which the underlying AMQPValue implements Coerce.

Source§

fn retrieve(&'a self, key: &str) -> Option<T>

Implementors§