pub struct OperationHistoryResponse {
pub records: Vec<OperationRecord>,
pub page_size: Option<u32>,
}Expand description
Response of POST /api/v1/operations/search (schema OperationListResponse). Unlike the other
paginated lists, the docs give only records and pageSize (no total).
§Examples
use brokapi_bcs_protocol::http::models::OperationHistoryResponse;
let page: OperationHistoryResponse = serde_json::from_str(r#"{"records":[],"pageSize":50}"#)?;
assert_eq!(page.page_size, Some(50));Fields§
§records: Vec<OperationRecord>The operations of the page.
page_size: Option<u32>Records per page, as the broker reports it. There is no total count: read pages until one is shorter than the page size.
Trait Implementations§
Source§impl Clone for OperationHistoryResponse
impl Clone for OperationHistoryResponse
Source§fn clone(&self) -> OperationHistoryResponse
fn clone(&self) -> OperationHistoryResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OperationHistoryResponse
impl Debug for OperationHistoryResponse
Source§impl<'de> Deserialize<'de> for OperationHistoryResponse
impl<'de> Deserialize<'de> for OperationHistoryResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OperationHistoryResponse
impl PartialEq for OperationHistoryResponse
Source§fn eq(&self, other: &OperationHistoryResponse) -> bool
fn eq(&self, other: &OperationHistoryResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OperationHistoryResponse
Auto Trait Implementations§
impl Freeze for OperationHistoryResponse
impl RefUnwindSafe for OperationHistoryResponse
impl Send for OperationHistoryResponse
impl Sync for OperationHistoryResponse
impl Unpin for OperationHistoryResponse
impl UnsafeUnpin for OperationHistoryResponse
impl UnwindSafe for OperationHistoryResponse
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
Mutably borrows from an owned value. Read more