pub struct VersionResponse {
pub version: &'static str,
pub formats: Vec<&'static str>,
pub capabilities: Vec<&'static str>,
}Expand description
Wire shape for GET /version responses.
All fields are compile-time constants — no database access is required.
The primary use case is client-side feature detection: a UI or script
calls /version on startup to discover which formats and endpoints the
running server supports before making assumptions about its capabilities.
Fields§
§version: &'static strSemver version of the running logdive-api binary, injected from
CARGO_PKG_VERSION at compile time.
formats: Vec<&'static str>Ingest formats the binary was compiled with, sourced from
LogFormat::ALL. Stays in sync with core without manual
maintenance — adding a new format to core propagates here for free.
capabilities: Vec<&'static str>API endpoint names available on this server, sorted alphabetically.
Trait Implementations§
Source§impl Debug for VersionResponse
impl Debug for VersionResponse
Auto Trait Implementations§
impl Freeze for VersionResponse
impl RefUnwindSafe for VersionResponse
impl Send for VersionResponse
impl Sync for VersionResponse
impl Unpin for VersionResponse
impl UnsafeUnpin for VersionResponse
impl UnwindSafe for VersionResponse
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