pub struct CreateCommandResponse {
pub command_id: String,
pub created: Option<bool>,
pub inline_allowed_up_to: i64,
pub next: String,
pub state: CommandState,
pub storage_upload: Option<StorageUpload>,
}Expand description
Response to command creation
JSON schema
{
"description": "Response to command creation",
"type": "object",
"required": [
"commandId",
"inlineAllowedUpTo",
"next",
"state"
],
"properties": {
"commandId": {
"description": "Unique command identifier",
"type": "string"
},
"created": {
"description": "Whether this request created the returned command. False means an\nidempotent replay returned a command created by another request.",
"type": "boolean"
},
"inlineAllowedUpTo": {
"description": "Maximum inline body size allowed",
"type": "integer",
"format": "int64",
"minimum": 0.0
},
"next": {
"description": "Next action for client: \"upload\" | \"poll\"",
"type": "string"
},
"state": {
"$ref": "#/components/schemas/CommandState"
},
"storageUpload": {
"description": "Storage upload info (only for storage mode)",
"oneOf": [
{
"type": "null"
},
{
"allOf": [
{
"$ref": "#/components/schemas/StorageUpload"
}
]
}
]
}
}
}Fields§
§command_id: StringUnique command identifier
created: Option<bool>Whether this request created the returned command. False means an idempotent replay returned a command created by another request.
inline_allowed_up_to: i64Maximum inline body size allowed
next: StringNext action for client: “upload” | “poll”
state: CommandState§storage_upload: Option<StorageUpload>Storage upload info (only for storage mode)
Implementations§
Source§impl CreateCommandResponse
impl CreateCommandResponse
pub fn builder() -> CreateCommandResponse
Trait Implementations§
Source§impl Clone for CreateCommandResponse
impl Clone for CreateCommandResponse
Source§impl Debug for CreateCommandResponse
impl Debug for CreateCommandResponse
Source§impl<'de> Deserialize<'de> for CreateCommandResponse
impl<'de> Deserialize<'de> for CreateCommandResponse
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<&CreateCommandResponse> for CreateCommandResponse
impl From<&CreateCommandResponse> for CreateCommandResponse
Source§fn from(value: &CreateCommandResponse) -> Self
fn from(value: &CreateCommandResponse) -> Self
Converts to this type from the input type.
Source§impl From<CreateCommandResponse> for CreateCommandResponse
impl From<CreateCommandResponse> for CreateCommandResponse
Source§fn from(value: CreateCommandResponse) -> Self
fn from(value: CreateCommandResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for CreateCommandResponse
impl Serialize for CreateCommandResponse
Source§impl TryFrom<CreateCommandResponse> for CreateCommandResponse
impl TryFrom<CreateCommandResponse> for CreateCommandResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CreateCommandResponse) -> Result<Self, ConversionError>
fn try_from(value: CreateCommandResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for CreateCommandResponse
impl Freeze for CreateCommandResponse
impl Move for CreateCommandResponse
impl RefUnwindSafe for CreateCommandResponse
impl Send for CreateCommandResponse
impl Sync for CreateCommandResponse
impl Unpin for CreateCommandResponse
impl UnsafeUnpin for CreateCommandResponse
impl UnwindSafe for CreateCommandResponse
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