Struct VersionCheckResponse
pub struct VersionCheckResponse {
pub current_version: String,
pub latest_version: Option<String>,
pub is_newer: bool,
pub release_url: Option<String>,
pub release_notes: Option<String>,
pub published_at: Option<String>,
pub error: Option<String>,
}Expand description
Response body for GET /api/version/check. On success every field except
error is populated; on a soft failure the handler returns
{ current_version, latest_version: null, is_newer: false, error } so the
dashboard version badge degrades gracefully. This is the single source of
truth the generated web client derives from — see crate::openapi.
Fields§
§current_version: String§latest_version: Option<String>Latest release version, or null when the check could not complete.
is_newer: bool§release_url: Option<String>§release_notes: Option<String>Release notes body (Markdown).
published_at: Option<String>§error: Option<String>Set only when the check failed; absent on success.
Trait Implementations§
Source§impl Debug for VersionCheckResponse
impl Debug for VersionCheckResponse
Source§impl JsonSchema for VersionCheckResponse
impl JsonSchema for VersionCheckResponse
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 VersionCheckResponse
impl RefUnwindSafe for VersionCheckResponse
impl Send for VersionCheckResponse
impl Sync for VersionCheckResponse
impl Unpin for VersionCheckResponse
impl UnsafeUnpin for VersionCheckResponse
impl UnwindSafe for VersionCheckResponse
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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