pub struct Envelope {
pub attempt: i32,
pub command: String,
pub command_id: String,
pub deadline: Option<DateTime<Utc>>,
pub deployment_id: String,
pub params: BodySpec,
pub protocol: String,
pub response_handling: ResponseHandling,
}Expand description
Commands envelope sent to deployments
JSON schema
{
"description": "Commands envelope sent to deployments",
"type": "object",
"required": [
"attempt",
"command",
"commandId",
"deploymentId",
"params",
"protocol",
"responseHandling"
],
"properties": {
"attempt": {
"description": "Attempt number (starts at 1)",
"type": "integer",
"format": "int32",
"minimum": 0.0
},
"command": {
"description": "Command name (e.g., \"generate-report\", \"sync-data\")",
"type": "string"
},
"commandId": {
"description": "Unique command identifier",
"type": "string"
},
"deadline": {
"description": "Command deadline",
"type": [
"string",
"null"
],
"format": "date-time"
},
"deploymentId": {
"description": "Target deployment identifier",
"type": "string"
},
"params": {
"$ref": "#/components/schemas/BodySpec"
},
"protocol": {
"description": "Protocol version identifier",
"type": "string"
},
"responseHandling": {
"$ref": "#/components/schemas/ResponseHandling"
}
}
}Fields§
§attempt: i32Attempt number (starts at 1)
command: StringCommand name (e.g., “generate-report”, “sync-data”)
command_id: StringUnique command identifier
deadline: Option<DateTime<Utc>>Command deadline
deployment_id: StringTarget deployment identifier
params: BodySpec§protocol: StringProtocol version identifier
response_handling: ResponseHandlingImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Envelope
impl<'de> Deserialize<'de> for Envelope
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
Auto Trait Implementations§
impl Freeze for Envelope
impl RefUnwindSafe for Envelope
impl Send for Envelope
impl Sync for Envelope
impl Unpin for Envelope
impl UnsafeUnpin for Envelope
impl UnwindSafe for Envelope
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