Struct serde_amqp::described::Described
source · pub struct Described<T> {
pub descriptor: Descriptor,
pub value: T,
}
Expand description
Contains a descriptor and a wrapped value T.
This should usually be avoided other than in Value type.
Fields§
§descriptor: Descriptor
Descriptor of descriptor
value: T
Value of described
Implementations§
Trait Implementations§
source§impl<'de, T: Deserialize<'de>> Deserialize<'de> for Described<T>
impl<'de, T: Deserialize<'de>> Deserialize<'de> for Described<T>
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<T: Ord> Ord for Described<T>
impl<T: Ord> Ord for Described<T>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T: PartialOrd> PartialOrd for Described<T>
impl<T: PartialOrd> PartialOrd for Described<T>
impl<T: Eq> Eq for Described<T>
impl<T> StructuralPartialEq for Described<T>
Auto Trait Implementations§
impl<T> Freeze for Described<T>where
T: Freeze,
impl<T> RefUnwindSafe for Described<T>where
T: RefUnwindSafe,
impl<T> Send for Described<T>where
T: Send,
impl<T> Sync for Described<T>where
T: Sync,
impl<T> Unpin for Described<T>where
T: Unpin,
impl<T> UnwindSafe for Described<T>where
T: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.