1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* Rekor
*
* Rekor is a cryptographically secure, immutable transparency log for signed software releases.
*
* The version of the OpenAPI document: 0.0.1
*
* Generated by: https://openapi-generator.tech
*/
use crate::rekor::TreeSize;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, Eq, Default, Serialize, Deserialize)]
pub struct InactiveShardLogInfo {
/// The current hash value stored at the root of the merkle tree
#[serde(rename = "rootHash")]
pub root_hash: String,
/// The current number of nodes in the merkle tree
#[serde(rename = "treeSize")]
pub tree_size: TreeSize,
/// The current signed tree head
#[serde(rename = "signedTreeHead")]
pub signed_tree_head: String,
/// The current treeID
#[serde(rename = "treeID")]
pub tree_id: String,
}
impl InactiveShardLogInfo {
pub fn new(
root_hash: String,
tree_size: TreeSize,
signed_tree_head: String,
tree_id: String,
) -> InactiveShardLogInfo {
InactiveShardLogInfo {
root_hash,
tree_size,
signed_tree_head,
tree_id,
}
}
}