Struct amq_protocol_codegen::AMQPMethod
source · pub struct AMQPMethod {
pub id: Identifier,
pub arguments: Vec<AMQPArgument>,
pub name: String,
pub synchronous: Boolean,
pub content: Boolean,
pub metadata: Value,
pub is_reply: bool,
pub ignore_args: bool,
pub c2s: bool,
pub s2c: bool,
}
Expand description
A method as defined in the AMQP specification
Fields§
§id: Identifier
The id of the method
arguments: Vec<AMQPArgument>
The arguments of the method
name: String
The name of the method
synchronous: Boolean
Whether this method is synchronous or not
content: Boolean
Whether this method carries some content frames with it
metadata: Value
Extra metadata for code generation
is_reply: bool
Whether this method is a reply or not
ignore_args: bool
Whether all the arguments have force_default or not
c2s: bool
Whether this method can be sent from client to server
s2c: bool
Whether this method can be received from server to client
Trait Implementations§
source§impl Clone for AMQPMethod
impl Clone for AMQPMethod
source§fn clone(&self) -> AMQPMethod
fn clone(&self) -> AMQPMethod
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 AMQPMethod
impl Debug for AMQPMethod
source§impl<'de> Deserialize<'de> for AMQPMethod
impl<'de> Deserialize<'de> for AMQPMethod
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 AMQPMethod
impl PartialEq for AMQPMethod
source§fn eq(&self, other: &AMQPMethod) -> bool
fn eq(&self, other: &AMQPMethod) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AMQPMethod
impl Serialize for AMQPMethod
impl StructuralPartialEq for AMQPMethod
Auto Trait Implementations§
impl Freeze for AMQPMethod
impl RefUnwindSafe for AMQPMethod
impl Send for AMQPMethod
impl Sync for AMQPMethod
impl Unpin for AMQPMethod
impl UnwindSafe for AMQPMethod
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