1#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
3pub struct TreeValue {
4 #[prost(oneof = "tree_value::Value", tags = "2, 3, 4")]
5 pub value: ::core::option::Option<tree_value::Value>,
6}
7pub mod tree_value {
9 #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
10 pub struct File {
11 #[prost(bytes = "vec", tag = "1")]
12 pub id: ::prost::alloc::vec::Vec<u8>,
13 #[prost(bool, tag = "2")]
14 pub executable: bool,
15 #[prost(bytes = "vec", tag = "3")]
16 pub copy_id: ::prost::alloc::vec::Vec<u8>,
17 }
18 #[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
19 pub enum Value {
20 #[prost(message, tag = "2")]
21 File(File),
22 #[prost(bytes, tag = "3")]
23 SymlinkId(::prost::alloc::vec::Vec<u8>),
24 #[prost(bytes, tag = "4")]
25 TreeId(::prost::alloc::vec::Vec<u8>),
26 }
27}
28#[derive(Clone, PartialEq, ::prost::Message)]
29pub struct Tree {
30 #[prost(message, repeated, tag = "1")]
31 pub entries: ::prost::alloc::vec::Vec<tree::Entry>,
32}
33pub mod tree {
35 #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
36 pub struct Entry {
37 #[prost(string, tag = "1")]
38 pub name: ::prost::alloc::string::String,
39 #[prost(message, optional, tag = "2")]
40 pub value: ::core::option::Option<super::TreeValue>,
41 }
42}
43#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
44pub struct Commit {
45 #[prost(bytes = "vec", repeated, tag = "1")]
46 pub parents: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
47 #[prost(bytes = "vec", repeated, tag = "2")]
48 pub predecessors: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
49 #[prost(bytes = "vec", repeated, tag = "3")]
51 pub root_tree: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
52 #[prost(bytes = "vec", tag = "4")]
53 pub change_id: ::prost::alloc::vec::Vec<u8>,
54 #[prost(string, tag = "5")]
55 pub description: ::prost::alloc::string::String,
56 #[prost(message, optional, tag = "6")]
57 pub author: ::core::option::Option<commit::Signature>,
58 #[prost(message, optional, tag = "7")]
59 pub committer: ::core::option::Option<commit::Signature>,
60 #[prost(bytes = "vec", optional, tag = "9")]
61 pub secure_sig: ::core::option::Option<::prost::alloc::vec::Vec<u8>>,
62}
63pub mod commit {
65 #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
66 pub struct Timestamp {
67 #[prost(int64, tag = "1")]
68 pub millis_since_epoch: i64,
69 #[prost(int32, tag = "2")]
70 pub tz_offset: i32,
71 }
72 #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
73 pub struct Signature {
74 #[prost(string, tag = "1")]
75 pub name: ::prost::alloc::string::String,
76 #[prost(string, tag = "2")]
77 pub email: ::prost::alloc::string::String,
78 #[prost(message, optional, tag = "3")]
79 pub timestamp: ::core::option::Option<Timestamp>,
80 }
81}