pub struct ActionRequest {
pub id: u64,
pub name: Str,
pub args: Cbor,
}Expand description
BARE struct ActionRequest.
Fields§
§id: u64§name: Str§args: CborTrait Implementations§
Source§impl Clone for ActionRequest
impl Clone for ActionRequest
Source§impl Debug for ActionRequest
impl Debug for ActionRequest
Source§impl Encode for ActionRequest
impl Encode for ActionRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
The exact encoded length, computed without encoding.
fn encode<S: Sink>(&self, out: &mut S)
fn encode_to_vec(&self) -> Vec<u8> ⓘ
fn encode_to_bytes(&self) -> Bytes
Source§fn encode_to_slice(&self, out: &mut [u8]) -> Result<usize, EncodeError>
fn encode_to_slice(&self, out: &mut [u8]) -> Result<usize, EncodeError>
Encodes into the front of
out and returns the number of bytes written. Checks the length
first instead of panicking when out is too short.impl Eq for ActionRequest
Source§impl From<ActionRequest> for ActionRequest
impl From<ActionRequest> for ActionRequest
Source§fn from(value: ActionRequest) -> Self
fn from(value: ActionRequest) -> Self
Converts to this type from the input type.
Source§impl From<ActionRequest> for ActionRequest
impl From<ActionRequest> for ActionRequest
Source§fn from(value: ActionRequest) -> Self
fn from(value: ActionRequest) -> Self
Converts to this type from the input type.
Source§impl Hash for ActionRequest
impl Hash for ActionRequest
Source§impl Message for ActionRequest
impl Message for ActionRequest
Source§type Wire = ActionRequestWire
type Wire = ActionRequestWire
The wire marker whose owned form is this type.
Source§fn view(bytes: Bytes) -> Result<View<Self::Wire>, DecodeError>
fn view(bytes: Bytes) -> Result<View<Self::Wire>, DecodeError>
Verifies
bytes and returns a zero-copy view over them.Source§impl PartialEq for ActionRequest
impl PartialEq for ActionRequest
impl StructuralPartialEq for ActionRequest
Auto Trait Implementations§
impl !Freeze for ActionRequest
impl RefUnwindSafe for ActionRequest
impl Send for ActionRequest
impl Sync for ActionRequest
impl Unpin for ActionRequest
impl UnsafeUnpin for ActionRequest
impl UnwindSafe for ActionRequest
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