pub struct ServerInfo {
pub version: &'static str,
pub git_sha: Option<&'static str>,
pub build_profile: &'static str,
}Fields§
§version: &'static strenv!("CARGO_PKG_VERSION") — the cellos-server crate version.
git_sha: Option<&'static str>Short git SHA captured at build time via the optional
CELLOS_GIT_SHA env var. Omitted from the JSON when unset so
downstream consumers can rely on “present means real”.
build_profile: &'static str"release" for non-debug builds, "debug" otherwise.
Trait Implementations§
Source§impl Debug for ServerInfo
impl Debug for ServerInfo
Auto Trait Implementations§
impl Freeze for ServerInfo
impl RefUnwindSafe for ServerInfo
impl Send for ServerInfo
impl Sync for ServerInfo
impl Unpin for ServerInfo
impl UnsafeUnpin for ServerInfo
impl UnwindSafe for ServerInfo
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