Skip to main content

ledger_models/
fintekkers.requests.transaction.rs

1#[allow(clippy::derive_partial_eq_without_eq)]
2#[derive(Clone, PartialEq, ::prost::Message)]
3pub struct CreateTransactionRequestProto {
4    #[prost(enumeration = "super::super::models::util::ObjectTypeProto", tag = "1")]
5    pub object_type: i32,
6    #[prost(message, optional, tag = "2")]
7    pub version: ::core::option::Option<super::super::models::util::VersionProto>,
8    #[prost(message, optional, tag = "20")]
9    pub create_transaction_input: ::core::option::Option<
10        super::super::models::transaction::TransactionProto,
11    >,
12}
13#[allow(clippy::derive_partial_eq_without_eq)]
14#[derive(Clone, PartialEq, ::prost::Message)]
15pub struct CreateTransactionResponseProto {
16    #[prost(enumeration = "super::super::models::util::ObjectTypeProto", tag = "1")]
17    pub object_type: i32,
18    #[prost(message, optional, tag = "2")]
19    pub version: ::core::option::Option<super::super::models::util::VersionProto>,
20    #[prost(message, optional, tag = "20")]
21    pub create_transaction_request: ::core::option::Option<
22        CreateTransactionRequestProto,
23    >,
24    #[prost(message, optional, tag = "30")]
25    pub transaction_response: ::core::option::Option<
26        super::super::models::transaction::TransactionProto,
27    >,
28}
29#[allow(clippy::derive_partial_eq_without_eq)]
30#[derive(Clone, PartialEq, ::prost::Message)]
31pub struct QueryTransactionRequestProto {
32    #[prost(enumeration = "super::super::models::util::ObjectTypeProto", tag = "1")]
33    pub object_type: i32,
34    #[prost(message, optional, tag = "2")]
35    pub version: ::core::option::Option<super::super::models::util::VersionProto>,
36    /// The list of UUIds to return
37    #[prost(message, repeated, tag = "21")]
38    pub uu_ids: ::prost::alloc::vec::Vec<super::super::models::util::UuidProto>,
39    /// A list of position filters that will filter securities that match.
40    #[prost(message, optional, tag = "22")]
41    pub search_transaction_input: ::core::option::Option<
42        super::super::models::position::PositionFilterProto,
43    >,
44    /// The as of date to query the data set
45    #[prost(message, optional, tag = "23")]
46    pub as_of: ::core::option::Option<super::super::models::util::LocalTimestampProto>,
47    /// Paging (see docs/adr/query_paging.md). Max records returned in this
48    /// response: the page size the client asks for. Unset or 0 = no client page
49    /// cap; the server keeps today's behaviour for this RPC. The server may cap
50    /// `limit` and return fewer items; fewer items does not mean last page, only
51    /// an empty `next_page_token` does. For streaming Search, `limit` caps the
52    /// total items across the whole stream. Clients that set neither `limit` nor
53    /// `page_token` get exactly today's results.
54    #[prost(int32, tag = "24")]
55    pub limit: i32,
56    /// Paging (see docs/adr/query_paging.md). Opaque token copied from a
57    /// previous response's `next_page_token`. Unset or empty = first page.
58    /// Clients must not parse or build tokens; send the other request fields
59    /// unchanged across pages. Clients that set neither `limit` nor
60    /// `page_token` get exactly today's results.
61    #[prost(string, tag = "51")]
62    pub page_token: ::prost::alloc::string::String,
63}
64#[allow(clippy::derive_partial_eq_without_eq)]
65#[derive(Clone, PartialEq, ::prost::Message)]
66pub struct QueryTransactionResponseProto {
67    #[prost(enumeration = "super::super::models::util::ObjectTypeProto", tag = "1")]
68    pub object_type: i32,
69    #[prost(message, optional, tag = "2")]
70    pub version: ::core::option::Option<super::super::models::util::VersionProto>,
71    #[prost(message, optional, tag = "20")]
72    pub create_transaction_request: ::core::option::Option<QueryTransactionRequestProto>,
73    #[prost(message, repeated, tag = "30")]
74    pub transaction_response: ::prost::alloc::vec::Vec<
75        super::super::models::transaction::TransactionProto,
76    >,
77    /// If no errors or warnings in the response then the request was processed successfully without any
78    /// contingencies.
79    #[prost(message, optional, tag = "40")]
80    pub errors_or_warnings: ::core::option::Option<super::util::errors::SummaryProto>,
81    /// Paging (see docs/adr/query_paging.md). Opaque token for the next page;
82    /// pass it back as the request's `page_token`. Empty = last page. For
83    /// streaming Search, only the final message of the stream carries it.
84    /// Old clients that ignore it get exactly today's results.
85    #[prost(string, tag = "50")]
86    pub next_page_token: ::prost::alloc::string::String,
87}