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

Structure holding the definition of the protocol

Fields

name: ShortString

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: LongString

The copyright holder of the protocol specification

domains: BTreeMap<ShortString, 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

Load protocol definition from reference specification

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Get the raw name
Get the name converted to camel case
Get the name converted to snake case
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.