pub struct StdinRequest {
pub data_b64: Option<String>,
pub signal: Option<String>,
}Expand description
POST /v1/exec/{id}/stdin body.
Both fields optional and both meaningful together: a final chunk plus EOF in one request is the common case for feeding a prompt, and forcing two round trips would leave a window where the child has the bytes but not the EOF that tells it the input is complete.
Fields§
§data_b64: Option<String>Base64 so arbitrary bytes survive JSON. A JSON string cannot carry non-UTF-8, and stdin is bytes.
signal: Option<String>"eof" closes the pipe after any data_b64 is written. Named rather than
a bare boolean so the field has somewhere to grow.
Trait Implementations§
Source§impl Debug for StdinRequest
impl Debug for StdinRequest
Source§impl Default for StdinRequest
impl Default for StdinRequest
Source§fn default() -> StdinRequest
fn default() -> StdinRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StdinRequest
impl<'de> Deserialize<'de> for StdinRequest
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 StdinRequest
impl JsonSchema for StdinRequest
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 StdinRequest
impl RefUnwindSafe for StdinRequest
impl Send for StdinRequest
impl Sync for StdinRequest
impl Unpin for StdinRequest
impl UnsafeUnpin for StdinRequest
impl UnwindSafe for StdinRequest
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