pub struct UploadQuery {
pub name: String,
pub version: String,
pub target: String,
pub date: String,
pub channel: Option<String>,
}Expand description
Query parameters for uploading a toolchain
Fields§
§name: StringToolchain name (e.g., “rust”)
version: StringToolchain version (e.g., “1.75.0”)
target: StringTarget triple (e.g., “x86_64-unknown-linux-gnu”)
date: StringRelease date (e.g., “2024-01-15”)
channel: Option<String>Optional channel to associate (e.g., “stable”)
Trait Implementations§
Source§impl ComposeSchema for UploadQuery
impl ComposeSchema for UploadQuery
Source§impl Debug for UploadQuery
impl Debug for UploadQuery
Source§impl<'de> Deserialize<'de> for UploadQuery
impl<'de> Deserialize<'de> for UploadQuery
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 UploadQuery
impl IntoParams for UploadQuery
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 Forget for UploadQuery
impl Freeze for UploadQuery
impl Move for UploadQuery
impl RefUnwindSafe for UploadQuery
impl Send for UploadQuery
impl Sync for UploadQuery
impl Unpin for UploadQuery
impl UnsafeUnpin for UploadQuery
impl UnwindSafe for UploadQuery
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more