pub struct CommandPayloadResponse {
pub command_id: String,
pub params: Option<BodySpec>,
pub response: Option<CommandResponse>,
}Expand description
Payload response containing params and response data from KV
JSON schema
{
"description": "Payload response containing params and response data from KV",
"type": "object",
"required": [
"commandId"
],
"properties": {
"commandId": {
"type": "string"
},
"params": {
"$ref": "#/components/schemas/BodySpec"
},
"response": {
"$ref": "#/components/schemas/CommandResponse"
}
}
}Fields§
§command_id: String§params: Option<BodySpec>§response: Option<CommandResponse>Implementations§
Source§impl CommandPayloadResponse
impl CommandPayloadResponse
pub fn builder() -> CommandPayloadResponse
Trait Implementations§
Source§impl Clone for CommandPayloadResponse
impl Clone for CommandPayloadResponse
Source§fn clone(&self) -> CommandPayloadResponse
fn clone(&self) -> CommandPayloadResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CommandPayloadResponse
impl Debug for CommandPayloadResponse
Source§impl<'de> Deserialize<'de> for CommandPayloadResponse
impl<'de> Deserialize<'de> for CommandPayloadResponse
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 From<&CommandPayloadResponse> for CommandPayloadResponse
impl From<&CommandPayloadResponse> for CommandPayloadResponse
Source§fn from(value: &CommandPayloadResponse) -> Self
fn from(value: &CommandPayloadResponse) -> Self
Converts to this type from the input type.
Source§impl From<CommandPayloadResponse> for CommandPayloadResponse
impl From<CommandPayloadResponse> for CommandPayloadResponse
Source§fn from(value: CommandPayloadResponse) -> Self
fn from(value: CommandPayloadResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for CommandPayloadResponse
impl Serialize for CommandPayloadResponse
Source§impl TryFrom<CommandPayloadResponse> for CommandPayloadResponse
impl TryFrom<CommandPayloadResponse> for CommandPayloadResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CommandPayloadResponse) -> Result<Self, ConversionError>
fn try_from(value: CommandPayloadResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CommandPayloadResponse
impl RefUnwindSafe for CommandPayloadResponse
impl Send for CommandPayloadResponse
impl Sync for CommandPayloadResponse
impl Unpin for CommandPayloadResponse
impl UnsafeUnpin for CommandPayloadResponse
impl UnwindSafe for CommandPayloadResponse
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