pub struct GetDeliveryRecordParams {
pub category: Category,
pub symbol: Option<String>,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub exp_date: Option<String>,
pub limit: Option<u64>,
pub cursor: Option<String>,
}Expand description
Query params for
Client::get_delivery_record.
Fields§
§category: Categorylinear, inverse, option
symbol: Option<String>§start_time: Option<Timestamp>Without start_time and end_time, returns the past 30 days by default
end_time: Option<Timestamp>§exp_date: Option<String>Expiry date, e.g. “25MAR22”. Returns all if not specified
limit: Option<u64>Limit for data size per page. [1, 50]. Default: 20
cursor: Option<String>Implementations§
Source§impl GetDeliveryRecordParams
impl GetDeliveryRecordParams
pub fn new(category: Category) -> Self
pub fn with_symbol(self, v: String) -> Self
pub fn with_start_time(self, v: Timestamp) -> Self
pub fn with_end_time(self, v: Timestamp) -> Self
pub fn with_exp_date(self, v: String) -> Self
pub fn with_limit(self, v: u64) -> Self
pub fn with_cursor(self, v: String) -> Self
Trait Implementations§
Source§impl Clone for GetDeliveryRecordParams
impl Clone for GetDeliveryRecordParams
Source§impl Debug for GetDeliveryRecordParams
impl Debug for GetDeliveryRecordParams
Auto Trait Implementations§
impl Freeze for GetDeliveryRecordParams
impl RefUnwindSafe for GetDeliveryRecordParams
impl Send for GetDeliveryRecordParams
impl Sync for GetDeliveryRecordParams
impl Unpin for GetDeliveryRecordParams
impl UnsafeUnpin for GetDeliveryRecordParams
impl UnwindSafe for GetDeliveryRecordParams
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