pub struct GetUpdatesPageRequest {
pub begin_offset_exclusive: Option<i64>,
pub end_offset_inclusive: Option<i64>,
pub max_page_size: Option<i32>,
pub update_format: Option<UpdateFormat>,
pub descending_order: bool,
pub page_token: Option<Vec<u8>>,
}Fields§
§begin_offset_exclusive: Option<i64>Exclusive lower bound offset of the requested ledger section (non-negative integer). The response page will only contain updates whose offset is strictly greater than this. If set to zero or not defined, the lower bound is set to the actual pruning offset or to the beginning of the ledger if the participant was not pruned yet. If set to positive and the ledger has been pruned, this parameter must be greater or equal than the pruning offset.
Optional
end_offset_inclusive: Option<i64>Inclusive upper bound offset of the requested ledger section. If specified the response will only contain updates whose offset is less than or equal to this. If not specified response will only contain updates whose offset is less than the current ledger-end.
Optional
max_page_size: Option<i32>The result page will contain the first max_page_size Updates of all matching updates. The server may reject queries with max_page_size above server specified limits. If not specified, the default max_page_size is determined by the server.
Optional
update_format: Option<UpdateFormat>Required
descending_order: boolIf set, the page will populate the elements in descending order starting from the end_offset_inclusive.
Optional
page_token: Option<Vec<u8>>To get the next page of updates, the page_token should be set to the
next_page_token of the last GetUpdatesPageResponse.
To achieve correct paging: subsequent requests must
- be executed on the same participant,
- have the same begin_offset_exclusive,
- have the same end_offset_inclusive,
- have the same update_format and
- have the same descending_order.
If not specified, the first page of updates will be returned.
Optional: can be empty
Implementations§
Source§impl GetUpdatesPageRequest
impl GetUpdatesPageRequest
Sourcepub fn begin_offset_exclusive(&self) -> i64
pub fn begin_offset_exclusive(&self) -> i64
Returns the value of begin_offset_exclusive, or the default value if begin_offset_exclusive is unset.
Sourcepub fn end_offset_inclusive(&self) -> i64
pub fn end_offset_inclusive(&self) -> i64
Returns the value of end_offset_inclusive, or the default value if end_offset_inclusive is unset.
Sourcepub fn max_page_size(&self) -> i32
pub fn max_page_size(&self) -> i32
Returns the value of max_page_size, or the default value if max_page_size is unset.
Sourcepub fn page_token(&self) -> &[u8] ⓘ
pub fn page_token(&self) -> &[u8] ⓘ
Returns the value of page_token, or the default value if page_token is unset.
Trait Implementations§
Source§impl Clone for GetUpdatesPageRequest
impl Clone for GetUpdatesPageRequest
Source§fn clone(&self) -> GetUpdatesPageRequest
fn clone(&self) -> GetUpdatesPageRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GetUpdatesPageRequest
impl Debug for GetUpdatesPageRequest
Source§impl Default for GetUpdatesPageRequest
impl Default for GetUpdatesPageRequest
Source§fn default() -> GetUpdatesPageRequest
fn default() -> GetUpdatesPageRequest
Source§impl Message for GetUpdatesPageRequest
impl Message for GetUpdatesPageRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for GetUpdatesPageRequest
impl PartialEq for GetUpdatesPageRequest
impl StructuralPartialEq for GetUpdatesPageRequest
Auto Trait Implementations§
impl Freeze for GetUpdatesPageRequest
impl RefUnwindSafe for GetUpdatesPageRequest
impl Send for GetUpdatesPageRequest
impl Sync for GetUpdatesPageRequest
impl Unpin for GetUpdatesPageRequest
impl UnsafeUnpin for GetUpdatesPageRequest
impl UnwindSafe for GetUpdatesPageRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request