pub struct VersionResponse {
pub version: &'static str,
pub git_commit: Option<&'static str>,
pub git_ref: Option<&'static str>,
pub release_tag: Option<&'static str>,
pub built_at: Option<&'static str>,
pub signed: bool,
}Expand description
Response body for GET /version — build & release metadata.
All fields except version are best-effort: they’re set at compile
time from environment variables the release pipeline injects. When a
build runs without those variables set (e.g. local cargo build),
the corresponding fields are None and operators can interpret that
as “this binary did not come from a verified release pipeline”.
The companion admin route (Phase 4.4) consumes this endpoint to display sigstore-verified release information so operators can audit what’s actually running in production.
Fields§
§version: &'static strPackage version from Cargo.toml (always present).
git_commit: Option<&'static str>Git commit SHA (full or short) of the build, if injected via
GITHUB_SHA at compile time. None for unverified local builds.
git_ref: Option<&'static str>Git branch or tag name, if injected via GITHUB_REF_NAME.
release_tag: Option<&'static str>Release tag (e.g. v1.0.3) if this binary came from a tagged
release. Distinct from git_ref because release builds set this
explicitly via STATESET_RELEASE_TAG.
built_at: Option<&'static str>RFC 3339 build timestamp, if injected via
STATESET_BUILD_TIMESTAMP at compile time.
signed: boolWhether this binary’s release artifacts were signed via sigstore.
true when the release pipeline injected STATESET_SIGNED=true;
false (the default) for local builds, dev builds, and any
release where signing was skipped or failed.
Trait Implementations§
Source§impl Clone for VersionResponse
impl Clone for VersionResponse
Source§fn clone(&self) -> VersionResponse
fn clone(&self) -> VersionResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl ComposeSchema for VersionResponse
impl ComposeSchema for VersionResponse
Source§impl Debug for VersionResponse
impl Debug for VersionResponse
Source§impl Serialize for VersionResponse
impl Serialize 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> PartialSchema for Twhere
T: ComposeSchema + ?Sized,
impl<T> PartialSchema for Twhere
T: ComposeSchema + ?Sized,
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn compression(self) -> Compression<Self>where
Self: Sized,
fn compression(self) -> Compression<Self>where
Self: Sized,
compression-br or compression-deflate or compression-gzip or compression-zstd only.Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
trace only.Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
trace only.Source§fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
follow-redirect only.Source§fn set_request_id<M>(
self,
header_name: HeaderName,
make_request_id: M,
) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
fn set_request_id<M>(
self,
header_name: HeaderName,
make_request_id: M,
) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
request-id only.Source§fn set_x_request_id<M>(self, make_request_id: M) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
fn set_x_request_id<M>(self, make_request_id: M) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
request-id only.x-request-id as the header name. Read moreSource§fn propagate_request_id(
self,
header_name: HeaderName,
) -> PropagateRequestId<Self>where
Self: Sized,
fn propagate_request_id(
self,
header_name: HeaderName,
) -> PropagateRequestId<Self>where
Self: Sized,
request-id only.Source§fn propagate_x_request_id(self) -> PropagateRequestId<Self>where
Self: Sized,
fn propagate_x_request_id(self) -> PropagateRequestId<Self>where
Self: Sized,
request-id only.x-request-id as the header name. Read more