ledger_models/
fintekkers.requests.util.lock.rs

1#[allow(clippy::derive_partial_eq_without_eq)]
2#[derive(Clone, PartialEq, ::prost::Message)]
3pub struct LockRequestProto {
4    #[prost(string, tag = "1")]
5    pub object_class: ::prost::alloc::string::String,
6    #[prost(string, tag = "2")]
7    pub version: ::prost::alloc::string::String,
8    /// The namespace/partition to get the lock for. Generally, when requesting a
9    /// lock the caller should only specify the namespace, meaning that its up to
10    /// the lock service to pick a partition for you.
11    ///
12    /// If the partition number is also specified the lock service will ONLY try
13    /// to get the lock on that parition and fail if it the lock is already taken
14    #[prost(message, optional, tag = "11")]
15    pub node_partition: ::core::option::Option<
16        super::super::super::models::util::lock::NodePartition,
17    >,
18    #[prost(message, optional, tag = "12")]
19    pub endpoint: ::core::option::Option<super::super::super::models::util::Endpoint>,
20}
21#[allow(clippy::derive_partial_eq_without_eq)]
22#[derive(Clone, PartialEq, ::prost::Message)]
23pub struct LockResponseProto {
24    #[prost(string, tag = "1")]
25    pub object_class: ::prost::alloc::string::String,
26    #[prost(string, tag = "2")]
27    pub version: ::prost::alloc::string::String,
28    /// The request that this response is for
29    #[prost(message, optional, tag = "3")]
30    pub get_lock_request: ::core::option::Option<LockRequestProto>,
31    /// Returns the node, and its state that was granted to the caller. If this is empty
32    /// then there will be details in the {errors_or_warning} variable
33    #[prost(message, optional, tag = "4")]
34    pub lock_response: ::core::option::Option<
35        super::super::super::models::util::lock::NodeState,
36    >,
37    /// If no errors or warnings in the response then the request was processed successfully without any
38    /// contingencies.
39    #[prost(message, optional, tag = "40")]
40    pub errors_or_warnings: ::core::option::Option<super::errors::SummaryProto>,
41}