Struct amq_protocol_codegen::AMQProtocolDefinition [−][src]
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>, }
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
Methods
impl AMQProtocolDefinition
[src]
impl AMQProtocolDefinition
pub fn load() -> AMQProtocolDefinition
[src]
pub fn load() -> AMQProtocolDefinition
Load protocol definition from reference specification
Trait Implementations
impl Named for AMQProtocolDefinition
[src]
impl Named for AMQProtocolDefinition
fn name(&self) -> String
[src]
fn name(&self) -> String
Get the raw name
fn camel_name(&self) -> String
[src]
fn camel_name(&self) -> String
Get the name converted to camel case
fn snake_name(&self) -> String
[src]
fn snake_name(&self) -> String
Get the name converted to snake case
impl Clone for AMQProtocolDefinition
[src]
impl Clone for AMQProtocolDefinition
fn clone(&self) -> AMQProtocolDefinition
[src]
fn clone(&self) -> AMQProtocolDefinition
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for AMQProtocolDefinition
[src]
impl Debug for AMQProtocolDefinition
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for AMQProtocolDefinition
[src]
impl PartialEq for AMQProtocolDefinition
fn eq(&self, other: &AMQProtocolDefinition) -> bool
[src]
fn eq(&self, other: &AMQProtocolDefinition) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &AMQProtocolDefinition) -> bool
[src]
fn ne(&self, other: &AMQProtocolDefinition) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for AMQProtocolDefinition
impl Send for AMQProtocolDefinition
impl Sync for AMQProtocolDefinition
impl Sync for AMQProtocolDefinition