pub struct KillResponse {
pub exec_id: String,
pub killed: bool,
}Expand description
POST /v1/exec/{id}/kill response.
A named type rather than the serde_json::json! literal this used to be: an
ad-hoc Value has no schema to derive, so the one route whose body a client
most needs to branch on — killed distinguishes “signalled” from “the group
was already gone”, and both are 200 — would have been the one route the
published document could not describe.
Fields§
§exec_id: String§killed: boolWhether a signal was actually delivered. false with a 200 means the
process group had already exited, which is the outcome a kill wanted.
Trait Implementations§
Source§impl Debug for KillResponse
impl Debug for KillResponse
Source§impl<'de> Deserialize<'de> for KillResponse
impl<'de> Deserialize<'de> for KillResponse
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 KillResponse
impl JsonSchema for KillResponse
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 KillResponse
impl RefUnwindSafe for KillResponse
impl Send for KillResponse
impl Sync for KillResponse
impl Unpin for KillResponse
impl UnsafeUnpin for KillResponse
impl UnwindSafe for KillResponse
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