pub struct GetUpdatesPageRequest {
pub begin_offset_exclusive: Option<i64>,
pub end_offset_inclusive: Option<i64>,
pub max_page_size: Option<i32>,
pub update_format: Box<UpdateFormat>,
pub descending_order: Option<bool>,
pub page_token: Option<String>,
}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: Box<UpdateFormat>§descending_order: Option<bool>If set, the page will populate the elements in descending order starting from the end_offset_inclusive. Optional
page_token: Option<String>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 with the same version of canton, - 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
pub fn new(update_format: UpdateFormat) -> GetUpdatesPageRequest
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 more