[][src]Struct amq_protocol_codegen::AMQProtocolDefinition

pub struct AMQProtocolDefinition {
    pub name: String,
    pub major_version: ShortShortUInt,
    pub minor_version: ShortShortUInt,
    pub revision: ShortShortUInt,
    pub port: LongUInt,
    pub copyright: String,
    pub domains: BTreeMap<String, AMQPType>,
    pub constants: Vec<AMQPConstant>,
    pub soft_errors: Vec<AMQPConstant>,
    pub hard_errors: Vec<AMQPConstant>,
    pub classes: Vec<AMQPClass>,
}

Structure holding the definition of the protocol

Fields

name: String

The name of the protocol

major_version: ShortShortUInt

The major protocol version

minor_version: ShortShortUInt

The minor protocol version

revision: ShortShortUInt

The revision of the protocol version

port: LongUInt

The default port of the protocol

copyright: String

The copyright holder of the protocol specification

domains: BTreeMap<String, AMQPType>

The domains defined by the protocol specification

constants: Vec<AMQPConstant>

The constants defined by the protocol specification

soft_errors: Vec<AMQPConstant>

The soft errors defined by the protocol specification

hard_errors: Vec<AMQPConstant>

The hard errors defined by the protocol specification

classes: Vec<AMQPClass>

The classes defined by the protocol specification

Implementations

impl AMQProtocolDefinition[src]

pub fn load(metadata: Option<Value>) -> AMQProtocolDefinition[src]

Load protocol definition from reference specification

Trait Implementations

impl Clone for AMQProtocolDefinition[src]

impl Debug for AMQProtocolDefinition[src]

impl<'de> Deserialize<'de> for AMQProtocolDefinition[src]

impl PartialEq<AMQProtocolDefinition> for AMQProtocolDefinition[src]

impl Serialize for AMQProtocolDefinition[src]

impl StructuralPartialEq for AMQProtocolDefinition[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.