pub struct FieldTable(/* private fields */);
Expand description
Re-export of lapin::types::FieldTable 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 duplicate 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<FieldTable, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FieldTable, <__D as Deserializer<'de>>::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§fn from(m: BTreeMap<ShortString, AMQPValue>) -> FieldTable
fn from(m: BTreeMap<ShortString, AMQPValue>) -> FieldTable
Converts to this type from the input type.
Source§impl<'a> IntoIterator for &'a FieldTable
impl<'a> IntoIterator for &'a FieldTable
Source§type Item = (&'a ShortString, &'a AMQPValue)
type Item = (&'a ShortString, &'a AMQPValue)
The type of the elements being iterated over.
Source§type IntoIter = Iter<'a, ShortString, AMQPValue>
type IntoIter = Iter<'a, ShortString, AMQPValue>
Which kind of iterator are we turning this into?
Source§fn into_iter(self) -> <&'a FieldTable as IntoIterator>::IntoIter
fn into_iter(self) -> <&'a FieldTable as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Source§impl PartialEq for FieldTable
impl PartialEq for FieldTable
Source§impl Serialize for FieldTable
impl Serialize for FieldTable
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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