pub enum Header {
Boolean(bool),
Int(i32),
UInt(u32),
String(String),
}Expand description
Represents the value assigned to a RabbitMQ header, specifically the binding
header. This enumeration is used for deserializing
Ingress definitions.
§Important: integer size
It is not made abundantly clear, but when matching headers for the purposes of routing messages, RabbitMQ supports integer header values only up to 32-bit size. At the same time, RabbitMQ supports 64-bit integer header values just fine when simply attached to the message. Yet, during the routing process, the headers with 64-bit integer values are ignored.
Thus, i32 and u32 are chosen to underlie the integer variants of this
enumeration.
Variants§
Boolean(bool)
Represents the boolean header value.
Int(i32)
Represents the signed integer header value.
UInt(u32)
Represents the unsigned integer header value.
String(String)
Represents the string header value.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Header
impl<'de> Deserialize<'de> for Header
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 Ord for Header
impl Ord for Header
Source§impl PartialOrd for Header
impl PartialOrd for Header
impl Eq for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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