Struct AMQPProperties

Source
pub struct AMQPProperties { /* private fields */ }
Expand description

basic properties (Generated)

Implementations§

Source§

impl AMQPProperties

Source

pub fn with_content_type(self, value: ShortString) -> AMQPProperties

Set content-type (Generated)

Source

pub fn with_content_encoding(self, value: ShortString) -> AMQPProperties

Set content-encoding (Generated)

Source

pub fn with_headers(self, value: FieldTable) -> AMQPProperties

Set headers (Generated)

Source

pub fn with_delivery_mode(self, value: u8) -> AMQPProperties

Set delivery-mode (Generated)

Source

pub fn with_priority(self, value: u8) -> AMQPProperties

Set priority (Generated)

Source

pub fn with_correlation_id(self, value: ShortString) -> AMQPProperties

Set correlation-id (Generated)

Source

pub fn with_reply_to(self, value: ShortString) -> AMQPProperties

Set reply-to (Generated)

Source

pub fn with_expiration(self, value: ShortString) -> AMQPProperties

Set expiration (Generated)

Source

pub fn with_message_id(self, value: ShortString) -> AMQPProperties

Set message-id (Generated)

Source

pub fn with_timestamp(self, value: u64) -> AMQPProperties

Set timestamp (Generated)

Source

pub fn with_kind(self, value: ShortString) -> AMQPProperties

Set type (Generated)

Source

pub fn with_user_id(self, value: ShortString) -> AMQPProperties

Set user-id (Generated)

Source

pub fn with_app_id(self, value: ShortString) -> AMQPProperties

Set app-id (Generated)

Source

pub fn with_cluster_id(self, value: ShortString) -> AMQPProperties

Set cluster-id (Generated)

Source

pub fn content_type(&self) -> &Option<ShortString>

Get content-type (Generated)

Source

pub fn content_encoding(&self) -> &Option<ShortString>

Get content-encoding (Generated)

Source

pub fn headers(&self) -> &Option<FieldTable>

Get headers (Generated)

Source

pub fn delivery_mode(&self) -> &Option<u8>

Get delivery-mode (Generated)

Source

pub fn priority(&self) -> &Option<u8>

Get priority (Generated)

Source

pub fn correlation_id(&self) -> &Option<ShortString>

Get correlation-id (Generated)

Source

pub fn reply_to(&self) -> &Option<ShortString>

Get reply-to (Generated)

Source

pub fn expiration(&self) -> &Option<ShortString>

Get expiration (Generated)

Source

pub fn message_id(&self) -> &Option<ShortString>

Get message-id (Generated)

Source

pub fn timestamp(&self) -> &Option<u64>

Get timestamp (Generated)

Source

pub fn kind(&self) -> &Option<ShortString>

Get type (Generated)

Source

pub fn user_id(&self) -> &Option<ShortString>

Get user-id (Generated)

Source

pub fn app_id(&self) -> &Option<ShortString>

Get app-id (Generated)

Source

pub fn cluster_id(&self) -> &Option<ShortString>

Get cluster-id (Generated)

Source

pub fn bitmask(&self) -> u16

Get the bitpask for serialization (Generated)

Trait Implementations§

Source§

impl Clone for AMQPProperties

Source§

fn clone(&self) -> AMQPProperties

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AMQPProperties

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for AMQPProperties

Source§

fn default() -> AMQPProperties

Returns the “default value” for a type. Read more
Source§

impl PartialEq for AMQPProperties

Source§

fn eq(&self, other: &AMQPProperties) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for AMQPProperties

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,