pub struct CreateCommandResponse {
pub command_id: String,
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"
},
"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": {
"$ref": "#/components/schemas/StorageUpload"
}
}
}Fields§
§command_id: StringUnique command identifier
inline_allowed_up_to: i64Maximum inline body size allowed
next: StringNext action for client: “upload” | “poll”
state: CommandState§storage_upload: Option<StorageUpload>Implementations§
Source§impl CreateCommandResponse
impl CreateCommandResponse
pub fn builder() -> CreateCommandResponse
Trait Implementations§
Source§impl Clone for CreateCommandResponse
impl Clone for CreateCommandResponse
Source§fn clone(&self) -> CreateCommandResponse
fn clone(&self) -> CreateCommandResponse
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 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 Freeze 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