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
sourceimpl Clone for AMQPMethod
impl Clone for AMQPMethod
sourcefn clone(&self) -> AMQPMethod
fn clone(&self) -> AMQPMethod
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 more
sourceimpl Debug for AMQPMethod
impl Debug for AMQPMethod
sourceimpl<'de> Deserialize<'de> for AMQPMethod
impl<'de> Deserialize<'de> for AMQPMethod
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 PartialEq<AMQPMethod> for AMQPMethod
impl PartialEq<AMQPMethod> for AMQPMethod
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &AMQPMethod) -> bool
fn ne(&self, other: &AMQPMethod) -> bool
This method tests for !=
.
sourceimpl Serialize for AMQPMethod
impl Serialize for AMQPMethod
impl StructuralPartialEq for AMQPMethod
Auto Trait Implementations
impl RefUnwindSafe for AMQPMethod
impl Send for AMQPMethod
impl Sync for AMQPMethod
impl Unpin for AMQPMethod
impl UnwindSafe for AMQPMethod
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more