ya_client_model/market/
scan.rs

1use serde::{Deserialize, Serialize};
2
3/// Specify constructor data for new market scanning iterator.
4#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
5pub struct NewScan {
6    pub timeout: Option<u64>,
7    #[serde(rename = "type")]
8    pub scan_type: ScanType,
9    pub constraints: Option<String>,
10}
11
12#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
13#[serde(rename_all = "lowercase")]
14pub enum ScanType {
15    Offer,
16    Demand,
17}