Struct poster::UserProperties
source · pub struct UserProperties { /* private fields */ }Expand description
Map collection for reading user properties as key-value pairs from packets.
Implementations§
source§impl UserProperties
impl UserProperties
sourcepub fn contains_key(&self, key: &str) -> bool
pub fn contains_key(&self, key: &str) -> bool
Returns true if the container contains at least one element with the given key.
sourcepub fn get<'a>(&'a self, key: &'a str) -> impl Iterator<Item = &'a str>
pub fn get<'a>(&'a self, key: &'a str) -> impl Iterator<Item = &'a str>
Returns an iterator to the values under the given key.
sourcepub fn keys(&self) -> impl Iterator<Item = &str>
pub fn keys(&self) -> impl Iterator<Item = &str>
Returns an iterator which iterates over the keys. Note that it can contain duplicates.
Trait Implementations§
source§impl Clone for UserProperties
impl Clone for UserProperties
source§fn clone(&self) -> UserProperties
fn clone(&self) -> UserProperties
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for UserProperties
impl Debug for UserProperties
source§impl Default for UserProperties
impl Default for UserProperties
source§fn default() -> UserProperties
fn default() -> UserProperties
Returns the “default value” for a type. Read more