pub struct ExecQuery {
pub stream: bool,
}Expand description
Query parameters for the exec endpoint.
When stream=true the handler returns a Server-Sent Events stream with
one stdout / stderr event per line of output and a final exit event
carrying the exit code as JSON. When stream=false (the default) the
handler buffers the whole output and returns a single JSON
ContainerExecResponse body.
Fields§
§stream: boolStream exec events as SSE instead of returning a buffered JSON body.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ExecQuery
impl<'de> Deserialize<'de> for ExecQuery
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 IntoParams for ExecQuery
impl IntoParams for ExecQuery
Source§fn into_params(
parameter_in_provider: impl Fn() -> Option<ParameterIn>,
) -> Vec<Parameter>
fn into_params( parameter_in_provider: impl Fn() -> Option<ParameterIn>, ) -> Vec<Parameter>
Provide
Vec of openapi::path::Parameters to caller. The result is used in utoipa-gen library to
provide OpenAPI parameter information for the endpoint using the parameters.Auto Trait Implementations§
impl Freeze for ExecQuery
impl RefUnwindSafe for ExecQuery
impl Send for ExecQuery
impl Sync for ExecQuery
impl Unpin for ExecQuery
impl UnsafeUnpin for ExecQuery
impl UnwindSafe for ExecQuery
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