pub trait RetrieveUserId<'a, T> {
// Required method
fn retrieve_user_id(&'a self) -> Option<T>;
}Expand description
Artificial trait implemented for AMQPProperties to allow conveniently
extracting the user ID, coercing it into various types.
Required Methods§
Sourcefn retrieve_user_id(&'a self) -> Option<T>
fn retrieve_user_id(&'a self) -> Option<T>
Extracts the user ID from these AMQPProperties, if it is present
and can be coerced to type T.
Implementations on Foreign Types§
Source§impl<'a, T> RetrieveUserId<'a, T> for AMQPPropertieswhere
ShortString: Coerce<'a, T>,
Implements RetrieveUserId for every type T for which the underlying
ShortString implements Coerce.
impl<'a, T> RetrieveUserId<'a, T> for AMQPPropertieswhere
ShortString: Coerce<'a, T>,
Implements RetrieveUserId for every type T for which the underlying
ShortString implements Coerce.