Struct amq_protocol_types::FieldTable
source · [−]pub struct FieldTable(_);
Expand description
A Map<String, AMQPValue>
Implementations
sourceimpl 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
sourceimpl Clone for FieldTable
impl Clone for FieldTable
sourcefn clone(&self) -> FieldTable
fn clone(&self) -> FieldTable
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FieldTable
impl Debug for FieldTable
sourceimpl Default for FieldTable
impl Default for FieldTable
sourcefn default() -> FieldTable
fn default() -> FieldTable
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for FieldTable
impl<'de> Deserialize<'de> for FieldTable
sourcefn 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
sourceimpl From<BTreeMap<ShortString, AMQPValue>> for FieldTable
impl From<BTreeMap<ShortString, AMQPValue>> for FieldTable
sourcefn from(m: BTreeMap<ShortString, AMQPValue>) -> Self
fn from(m: BTreeMap<ShortString, AMQPValue>) -> Self
Performs the conversion.
sourceimpl From<FieldTable> for AMQPValue
impl From<FieldTable> for AMQPValue
sourcefn from(v: FieldTable) -> Self
fn from(v: FieldTable) -> Self
Performs the conversion.
sourceimpl<'a> IntoIterator for &'a FieldTable
impl<'a> IntoIterator for &'a FieldTable
sourceimpl PartialEq<FieldTable> for FieldTable
impl PartialEq<FieldTable> for FieldTable
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &FieldTable) -> bool
fn ne(&self, other: &FieldTable) -> bool
This method tests for !=
.
sourceimpl Serialize for FieldTable
impl Serialize for FieldTable
impl StructuralPartialEq for FieldTable
Auto Trait Implementations
impl RefUnwindSafe for FieldTable
impl Send for FieldTable
impl Sync for FieldTable
impl Unpin for FieldTable
impl UnwindSafe for FieldTable
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more