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
45
46
47
48
49
50
51
52
/// Basic key/value used to store header data.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Header {
    #[prost(string, tag="1")]
    pub name: std::string::String,
    #[prost(string, tag="2")]
    pub value: std::string::String,
}
/// Entry is an individual piece of structured data provided by wallet authors.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Entry {
    /// Kind is a hint to wallets as to what type of data to deserialize from the
    /// metadata field.
    #[prost(string, tag="1")]
    pub kind: std::string::String,
    /// The headers is excess metadata that may be useful to a wallet.
    #[prost(message, repeated, tag="2")]
    pub headers: ::std::vec::Vec<Header>,
    /// Body of the `Entry`.
    #[prost(bytes, tag="3")]
    pub body: std::vec::Vec<u8>,
}
/// AddressMetadata is the user-specified data that is covered by the users
/// signature.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddressMetadata {
    /// Timestamp allows servers to determine which version of the data is the most
    /// recent. Given in milliseconds.
    #[prost(int64, tag="1")]
    pub timestamp: i64,
    /// TTL tells us how long this entry should exist before being considered
    /// invalid. Given in milliseconds.
    #[prost(int64, tag="2")]
    pub ttl: i64,
    /// User specified data.  Presumably some conventional data determined by
    /// wallet authors.
    #[prost(message, repeated, tag="3")]
    pub entries: ::std::vec::Vec<Entry>,
}
/// Peer represents a single peer.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Peer {
    /// The URL pointing to the root of the keyserver REST API.
    #[prost(string, tag="1")]
    pub url: std::string::String,
}
/// A list of peers.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Peers {
    #[prost(message, repeated, tag="1")]
    pub peers: ::std::vec::Vec<Peer>,
}