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>,
}
Expand description
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§
source§impl AMQProtocolDefinition
impl AMQProtocolDefinition
sourcepub fn load(metadata: Option<Value>) -> AMQProtocolDefinition
pub fn load(metadata: Option<Value>) -> AMQProtocolDefinition
Load protocol definition from reference specification
Trait Implementations§
source§impl Clone for AMQProtocolDefinition
impl Clone for AMQProtocolDefinition
source§fn clone(&self) -> AMQProtocolDefinition
fn clone(&self) -> AMQProtocolDefinition
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AMQProtocolDefinition
impl Debug for AMQProtocolDefinition
source§impl<'de> Deserialize<'de> for AMQProtocolDefinition
impl<'de> Deserialize<'de> for AMQProtocolDefinition
source§fn 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
source§impl PartialEq for AMQProtocolDefinition
impl PartialEq for AMQProtocolDefinition
source§fn eq(&self, other: &AMQProtocolDefinition) -> bool
fn eq(&self, other: &AMQProtocolDefinition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AMQProtocolDefinition
impl Serialize for AMQProtocolDefinition
impl StructuralPartialEq for AMQProtocolDefinition
Auto Trait Implementations§
impl Freeze for AMQProtocolDefinition
impl RefUnwindSafe for AMQProtocolDefinition
impl Send for AMQProtocolDefinition
impl Sync for AMQProtocolDefinition
impl Unpin for AMQProtocolDefinition
impl UnwindSafe for AMQProtocolDefinition
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more