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
sourceimpl AMQProtocolDefinition
impl AMQProtocolDefinition
sourcepub fn load() -> AMQProtocolDefinition
pub fn load() -> AMQProtocolDefinition
Load protocol definition from reference specification
Trait Implementations
sourceimpl Clone for AMQProtocolDefinition
impl Clone for AMQProtocolDefinition
sourcefn clone(&self) -> AMQProtocolDefinition
fn clone(&self) -> AMQProtocolDefinition
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AMQProtocolDefinition
impl Debug for AMQProtocolDefinition
sourceimpl<'de> Deserialize<'de> for AMQProtocolDefinition
impl<'de> Deserialize<'de> for AMQProtocolDefinition
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Named for AMQProtocolDefinition
impl Named for AMQProtocolDefinition
sourcefn camel_name(&self) -> String
fn camel_name(&self) -> String
Get the name converted to camel case
sourcefn snake_name(&self) -> String
fn snake_name(&self) -> String
Get the name converted to snake case
sourceimpl PartialEq<AMQProtocolDefinition> for AMQProtocolDefinition
impl PartialEq<AMQProtocolDefinition> for AMQProtocolDefinition
sourcefn eq(&self, other: &AMQProtocolDefinition) -> bool
fn eq(&self, other: &AMQProtocolDefinition) -> bool
sourceimpl Serialize for AMQProtocolDefinition
impl Serialize for AMQProtocolDefinition
impl StructuralPartialEq for AMQProtocolDefinition
Auto Trait Implementations
impl RefUnwindSafe for AMQProtocolDefinition
impl Send for AMQProtocolDefinition
impl Sync for AMQProtocolDefinition
impl Unpin for AMQProtocolDefinition
impl UnwindSafe for AMQProtocolDefinition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more