jujutsu_lib/protos/
store.rs

1#[allow(clippy::derive_partial_eq_without_eq)]
2#[derive(Clone, PartialEq, ::prost::Message)]
3pub struct TreeValue {
4    #[prost(oneof = "tree_value::Value", tags = "2, 3, 4, 5")]
5    pub value: ::core::option::Option<tree_value::Value>,
6}
7/// Nested message and enum types in `TreeValue`.
8pub mod tree_value {
9    #[allow(clippy::derive_partial_eq_without_eq)]
10    #[derive(Clone, PartialEq, ::prost::Message)]
11    pub struct File {
12        #[prost(bytes = "vec", tag = "1")]
13        pub id: ::prost::alloc::vec::Vec<u8>,
14        #[prost(bool, tag = "2")]
15        pub executable: bool,
16    }
17    #[allow(clippy::derive_partial_eq_without_eq)]
18    #[derive(Clone, PartialEq, ::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        #[prost(bytes, tag = "5")]
27        ConflictId(::prost::alloc::vec::Vec<u8>),
28    }
29}
30#[allow(clippy::derive_partial_eq_without_eq)]
31#[derive(Clone, PartialEq, ::prost::Message)]
32pub struct Tree {
33    #[prost(message, repeated, tag = "1")]
34    pub entries: ::prost::alloc::vec::Vec<tree::Entry>,
35}
36/// Nested message and enum types in `Tree`.
37pub mod tree {
38    #[allow(clippy::derive_partial_eq_without_eq)]
39    #[derive(Clone, PartialEq, ::prost::Message)]
40    pub struct Entry {
41        #[prost(string, tag = "1")]
42        pub name: ::prost::alloc::string::String,
43        #[prost(message, optional, tag = "2")]
44        pub value: ::core::option::Option<super::TreeValue>,
45    }
46}
47#[allow(clippy::derive_partial_eq_without_eq)]
48#[derive(Clone, PartialEq, ::prost::Message)]
49pub struct Commit {
50    #[prost(bytes = "vec", repeated, tag = "1")]
51    pub parents: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
52    #[prost(bytes = "vec", repeated, tag = "2")]
53    pub predecessors: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
54    #[prost(bytes = "vec", tag = "3")]
55    pub root_tree: ::prost::alloc::vec::Vec<u8>,
56    #[prost(bytes = "vec", tag = "4")]
57    pub change_id: ::prost::alloc::vec::Vec<u8>,
58    #[prost(string, tag = "5")]
59    pub description: ::prost::alloc::string::String,
60    #[prost(message, optional, tag = "6")]
61    pub author: ::core::option::Option<commit::Signature>,
62    #[prost(message, optional, tag = "7")]
63    pub committer: ::core::option::Option<commit::Signature>,
64    #[deprecated]
65    #[prost(bool, tag = "8")]
66    pub is_open: bool,
67    #[deprecated]
68    #[prost(bool, tag = "9")]
69    pub is_pruned: bool,
70}
71/// Nested message and enum types in `Commit`.
72pub mod commit {
73    #[allow(clippy::derive_partial_eq_without_eq)]
74    #[derive(Clone, PartialEq, ::prost::Message)]
75    pub struct Timestamp {
76        #[prost(int64, tag = "1")]
77        pub millis_since_epoch: i64,
78        #[prost(int32, tag = "2")]
79        pub tz_offset: i32,
80    }
81    #[allow(clippy::derive_partial_eq_without_eq)]
82    #[derive(Clone, PartialEq, ::prost::Message)]
83    pub struct Signature {
84        #[prost(string, tag = "1")]
85        pub name: ::prost::alloc::string::String,
86        #[prost(string, tag = "2")]
87        pub email: ::prost::alloc::string::String,
88        #[prost(message, optional, tag = "3")]
89        pub timestamp: ::core::option::Option<Timestamp>,
90    }
91}
92#[allow(clippy::derive_partial_eq_without_eq)]
93#[derive(Clone, PartialEq, ::prost::Message)]
94pub struct Conflict {
95    #[prost(message, repeated, tag = "1")]
96    pub removes: ::prost::alloc::vec::Vec<conflict::Part>,
97    #[prost(message, repeated, tag = "2")]
98    pub adds: ::prost::alloc::vec::Vec<conflict::Part>,
99}
100/// Nested message and enum types in `Conflict`.
101pub mod conflict {
102    #[allow(clippy::derive_partial_eq_without_eq)]
103    #[derive(Clone, PartialEq, ::prost::Message)]
104    pub struct Part {
105        #[prost(message, optional, tag = "1")]
106        pub content: ::core::option::Option<super::TreeValue>,
107    }
108}