pub struct RunHookEnvelope {
pub run_hook_payload: Option<String>,
}Expand description
The envelope the platform posts to the run hook.
The runHookPayload string given to RunMicrovm is not delivered as the
request body: the platform wraps it, so the body is
{"runHookPayload": "<the caller's string>"} and the caller’s own JSON is one
serde_json parse deeper. Measured 2026-08-05 — a daemon that reads
agent_token from the top level answers 400, and the platform then terminates
the VM with “Run lifecycle hook returned HTTP status 400” before any traffic is
forwarded, so the mistake is invisible from the outside.
Fields§
§run_hook_payload: Option<String>Trait Implementations§
Source§impl Debug for RunHookEnvelope
impl Debug for RunHookEnvelope
Source§impl<'de> Deserialize<'de> for RunHookEnvelope
impl<'de> Deserialize<'de> for RunHookEnvelope
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 JsonSchema for RunHookEnvelope
impl JsonSchema for RunHookEnvelope
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for RunHookEnvelope
impl RefUnwindSafe for RunHookEnvelope
impl Send for RunHookEnvelope
impl Sync for RunHookEnvelope
impl Unpin for RunHookEnvelope
impl UnsafeUnpin for RunHookEnvelope
impl UnwindSafe for RunHookEnvelope
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