[][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]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for ExchangeDeclareOptions[src]

impl Debug for ExchangeDeclareOptions[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.