pub struct PullImageQuery {
pub stream: bool,
}Expand description
Query parameters for the pull-image handler.
When stream=true, the handler returns a Newline-Delimited-JSON (NDJSON)
stream of PullProgressDto events instead of a single
PullImageResponse JSON object. Each event is one JSON object on its
own line, terminated with \n. The stream closes after a single
done event (or an error).
Fields§
§stream: boolWhen true, stream NDJSON PullProgressDto events instead of a
single JSON response. Defaults to false (snapshot pull).
Trait Implementations§
Source§impl Debug for PullImageQuery
impl Debug for PullImageQuery
Source§impl Default for PullImageQuery
impl Default for PullImageQuery
Source§fn default() -> PullImageQuery
fn default() -> PullImageQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PullImageQuery
impl<'de> Deserialize<'de> for PullImageQuery
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 PullImageQuery
impl IntoParams for PullImageQuery
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 PullImageQuery
impl RefUnwindSafe for PullImageQuery
impl Send for PullImageQuery
impl Sync for PullImageQuery
impl Unpin for PullImageQuery
impl UnsafeUnpin for PullImageQuery
impl UnwindSafe for PullImageQuery
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