ledger_models/
fintekkers.models.util.rs

1///   uint32 scale = 1;
2#[allow(clippy::derive_partial_eq_without_eq)]
3#[derive(Clone, PartialEq, ::prost::Message)]
4pub struct DecimalValueProto {
5    /// This is a string representation of a float number.
6    /// This will be deprecated in the future for a more space efficient approach
7    #[prost(string, tag = "10")]
8    pub arbitrary_precision_value: ::prost::alloc::string::String,
9}
10#[allow(clippy::derive_partial_eq_without_eq)]
11#[derive(Clone, PartialEq, ::prost::Message)]
12pub struct LocalDateProto {
13    #[prost(uint32, tag = "1")]
14    pub year: u32,
15    #[prost(uint32, tag = "2")]
16    pub month: u32,
17    #[prost(uint32, tag = "3")]
18    pub day: u32,
19}
20#[allow(clippy::derive_partial_eq_without_eq)]
21#[derive(Clone, PartialEq, ::prost::Message)]
22pub struct LocalTimestampProto {
23    #[prost(message, optional, tag = "1")]
24    pub timestamp: ::core::option::Option<::prost_types::Timestamp>,
25    /// TODO: Need to decide how to model this: <https://en.wikipedia.org/wiki/List_of_time_zone_abbreviations>
26    /// <https://docs.oracle.com/javase/8/docs/api/java/time/ZoneId.html>
27    #[prost(string, tag = "2")]
28    pub time_zone: ::prost::alloc::string::String,
29}
30#[allow(clippy::derive_partial_eq_without_eq)]
31#[derive(Clone, PartialEq, ::prost::Message)]
32pub struct UuidProto {
33    #[prost(bytes = "vec", tag = "1")]
34    pub raw_uuid: ::prost::alloc::vec::Vec<u8>,
35}
36#[allow(clippy::derive_partial_eq_without_eq)]
37#[derive(Clone, PartialEq, ::prost::Message)]
38pub struct Endpoint {
39    /// The IP address that an endpoint is exposed through. The assumption is the IP
40    /// is exposed to internal clients through VPC/Security rules, or to the public
41    /// internet if public-facing
42    #[prost(string, tag = "1")]
43    pub ip: ::prost::alloc::string::String,
44    /// The port that the service is listening to on the specified IP address.
45    #[prost(uint32, tag = "2")]
46    pub port: u32,
47    /// Placeholder for the future. For public-facing traffic a URL will be used, and
48    /// the resolution to IP occurs via DNS.
49    #[prost(string, tag = "3")]
50    pub fully_qualified_url: ::prost::alloc::string::String,
51}
52#[allow(clippy::derive_partial_eq_without_eq)]
53#[derive(Clone, PartialEq, ::prost::Message)]
54pub struct DateRangeProto {
55    #[prost(string, tag = "1")]
56    pub object_class: ::prost::alloc::string::String,
57    #[prost(string, tag = "2")]
58    pub version: ::prost::alloc::string::String,
59    /// Date Ranges are inclusive of the start and end dates
60    #[prost(message, optional, tag = "10")]
61    pub start: ::core::option::Option<LocalTimestampProto>,
62    #[prost(message, optional, tag = "11")]
63    pub end: ::core::option::Option<LocalTimestampProto>,
64}