Struct amq_protocol_types::FieldTable
source · pub struct FieldTable(/* private fields */);
Expand description
A Map<String, AMQPValue>
Implementations§
source§impl FieldTable
impl FieldTable
sourcepub fn insert(&mut self, k: ShortString, v: AMQPValue)
pub fn insert(&mut self, k: ShortString, v: AMQPValue)
Insert a new entry in the table
sourcepub fn contains_key(&self, k: &str) -> bool
pub fn contains_key(&self, k: &str) -> bool
Check whether the table contains the given key
sourcepub fn inner(&self) -> &BTreeMap<ShortString, AMQPValue>
pub fn inner(&self) -> &BTreeMap<ShortString, AMQPValue>
Access the inner BTreeMap to perform lookups
Trait Implementations§
source§impl Clone for FieldTable
impl Clone for FieldTable
source§fn clone(&self) -> FieldTable
fn clone(&self) -> FieldTable
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 FieldTable
impl Debug for FieldTable
source§impl Default for FieldTable
impl Default for FieldTable
source§fn default() -> FieldTable
fn default() -> FieldTable
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for FieldTable
impl<'de> Deserialize<'de> for FieldTable
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<BTreeMap<ShortString, AMQPValue>> for FieldTable
impl From<BTreeMap<ShortString, AMQPValue>> for FieldTable
source§impl From<FieldTable> for AMQPValue
impl From<FieldTable> for AMQPValue
source§fn from(v: FieldTable) -> Self
fn from(v: FieldTable) -> Self
Converts to this type from the input type.
source§impl<'a> IntoIterator for &'a FieldTable
impl<'a> IntoIterator for &'a FieldTable
source§impl PartialEq for FieldTable
impl PartialEq for FieldTable
source§fn eq(&self, other: &FieldTable) -> bool
fn eq(&self, other: &FieldTable) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for FieldTable
impl Serialize for FieldTable
impl StructuralPartialEq for FieldTable
Auto Trait Implementations§
impl Freeze for FieldTable
impl RefUnwindSafe for FieldTable
impl Send for FieldTable
impl Sync for FieldTable
impl Unpin for FieldTable
impl UnwindSafe for FieldTable
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more