pub struct CommandParam {
pub field: String,
pub storage_type: i32,
pub value_type: Option<ValueType>,
pub mapping: Option<Mapping>,
pub required: bool,
}Expand description
§11.7 Caller-supplied input to a command, with its own wire mapping.
required params MUST be written by at least one WriteStep (MDE504).
Fields§
§field: String§storage_type: i32§value_type: Option<ValueType>§mapping: Option<Mapping>§required: boolImplementations§
Source§impl CommandParam
impl CommandParam
Sourcepub fn storage_type(&self) -> StorageType
pub fn storage_type(&self) -> StorageType
Returns the enum value of storage_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_storage_type(&mut self, value: StorageType)
pub fn set_storage_type(&mut self, value: StorageType)
Sets storage_type to the provided enum value.
Trait Implementations§
Source§impl Clone for CommandParam
impl Clone for CommandParam
Source§impl Debug for CommandParam
impl Debug for CommandParam
Source§impl Default for CommandParam
impl Default for CommandParam
§impl<'de> Deserialize<'de> for CommandParam
impl<'de> Deserialize<'de> for CommandParam
§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 Message for CommandParam
impl Message for CommandParam
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for CommandParam
impl PartialEq for CommandParam
§impl Serialize for CommandParam
impl Serialize for CommandParam
impl StructuralPartialEq for CommandParam
Auto Trait Implementations§
impl Forget for CommandParam
impl Freeze for CommandParamwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArrayType is !null: Freeze,
PhantomData<ArrayType>: Freeze,
*const LeafNode<u32, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(u32, String)>>: Freeze,
*const ComposedMapping is !null: Freeze,
PhantomData<ComposedMapping>: Freeze,
PhantomData<u32>: Freeze,
impl Move for CommandParam
impl RefUnwindSafe for CommandParam
impl Send for CommandParam
impl Sync for CommandParam
impl Unpin for CommandParam
impl UnsafeUnpin for CommandParamwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArrayType is !null: UnsafeUnpin,
PhantomData<ArrayType>: UnsafeUnpin,
*const LeafNode<u32, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(u32, String)>>: UnsafeUnpin,
*const ComposedMapping is !null: UnsafeUnpin,
PhantomData<ComposedMapping>: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
impl UnwindSafe for CommandParamwhere
RawVecInner: UnwindSafe,
BoxRaw<ArrayType>: UnwindSafe,
BTreeMap<u32, String>: UnwindSafe,
BoxRaw<ComposedMapping>: UnwindSafe,
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