percas_client/
protos.rs

1// Copyright 2025 ScopeDB <contact@scopedb.io>
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//! Protocol definitions for the Percas client.
16
17use serde::Deserialize;
18use serde::Serialize;
19
20/// Version information about the Percas server.
21#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
22pub struct Version {
23    /// Git branch name.
24    pub branch: String,
25    /// Git commit hash.
26    pub commit: String,
27    /// Short Git commit hash.
28    pub commit_short: String,
29    /// Whether the build was clean.
30    pub clean: bool,
31    /// The source time of the build.
32    pub source_time: String,
33    /// The build time.
34    pub build_time: String,
35    /// The Rust compiler version.
36    pub rustc: String,
37    /// The target triple.
38    pub target: String,
39    /// The Percas version.
40    pub version: String,
41}