[][src]Struct amiquip::ExchangeDeclareOptions

pub struct ExchangeDeclareOptions {
    pub durable: bool,
    pub auto_delete: bool,
    pub internal: bool,
    pub arguments: FieldTable,
}

Options passed to the server when declaring an exchange.

The default implementation sets all boolean fields to false and has an empty set of arguments.

Fields

durable: bool

If true, declares exchange as durable (survives server restarts); if false, declares exchange as transient (will be deleted on a server restart).

auto_delete: bool

If true, declare exchange as auto-delete: it will be deleted once no queues are bound to it. The server will keep the exchange around for "a short period of time" to allow queues to be bound after it is created.

internal: bool

If true, declare exchange as internal: it may not be used by publishers, but only for exchange-to-exchange bindings.

arguments: FieldTable

Extra arguments; these are optional in general, but may be needed for some plugins or server-specific features.

Trait Implementations

impl Clone for ExchangeDeclareOptions[src]

impl Debug for ExchangeDeclareOptions[src]

impl Default for ExchangeDeclareOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.