pub struct KrakenEmbedGetAssetListQueryParamsSchema {
pub filter_assets: Vec<KrakenEmbedGetAssetListQueryParamsSchemaFilterAssetsItem>,
pub filter_platform_statuses: Vec<KrakenEmbedGetAssetListQueryParamsSchemaFilterPlatformStatusesItem>,
pub filter_tradable_only: Option<bool>,
pub filter_user: Option<String>,
pub lang: Option<KrakenEmbedGetAssetListQueryParamsSchemaLang>,
pub page_number: Option<NonZeroU64>,
pub page_size: Option<NonZeroU64>,
pub quote: Option<KrakenEmbedGetAssetListQueryParamsSchemaQuote>,
pub sort: Option<KrakenEmbedGetAssetListQueryParamsSchemaSort>,
}Expand description
Query parameters for listing and filtering available assets.
JSON schema
{
"description": "Query parameters for listing and filtering available
assets.",
"examples": [
{
"filter[tradable_only]": true,
"filter[user]": "cmdnvsfxa0007jt0jy61eghjk",
"page[size]": 50,
"quote": "USD"
}
],
"type": "object",
"properties": {
"filter[assets]": {
"type": "array",
"items": {
"type": "string",
"maxLength": 16
}
},
"filter[platform_statuses]": {
"type": "array",
"items": {
"oneOf": [
{
"type": "string",
"enum": [
"deposit_only",
"disabled",
"enabled",
"funding_temporarily_disabled",
"withdrawal_only"
]
},
{
"type": "string"
}
]
}
},
"filter[tradable_only]": {
"type": [
"boolean",
"null"
]
},
"filter[user]": {
"type": "string"
},
"lang": {
"type": "string",
"pattern": "^([a-zA-Z]{1,8})(-[a-zA-Z\\d]{1,8})*$"
},
"page[number]": {
"type": "integer",
"minimum": 1.0
},
"page[size]": {
"type": "integer",
"maximum": 100.0,
"minimum": 1.0
},
"quote": {
"type": "string",
"maxLength": 16
},
"sort": {
"type": "string",
"enum": [
"-change_percent_1h",
"-change_percent_1y",
"-change_percent_24h",
"-change_percent_30d",
"-change_percent_7d",
"-listing_date",
"-market_cap_rank",
"-name",
"-symbol",
"change_percent_1h",
"change_percent_1y",
"change_percent_24h",
"change_percent_30d",
"change_percent_7d",
"listing_date",
"market_cap_rank",
"name",
"symbol",
"trending"
]
}
}
}Fields§
§filter_assets: Vec<KrakenEmbedGetAssetListQueryParamsSchemaFilterAssetsItem>§filter_platform_statuses: Vec<KrakenEmbedGetAssetListQueryParamsSchemaFilterPlatformStatusesItem>§filter_tradable_only: Option<bool>§filter_user: Option<String>§lang: Option<KrakenEmbedGetAssetListQueryParamsSchemaLang>§page_number: Option<NonZeroU64>§page_size: Option<NonZeroU64>§quote: Option<KrakenEmbedGetAssetListQueryParamsSchemaQuote>§sort: Option<KrakenEmbedGetAssetListQueryParamsSchemaSort>Trait Implementations§
Source§impl Clone for KrakenEmbedGetAssetListQueryParamsSchema
impl Clone for KrakenEmbedGetAssetListQueryParamsSchema
Source§fn clone(&self) -> KrakenEmbedGetAssetListQueryParamsSchema
fn clone(&self) -> KrakenEmbedGetAssetListQueryParamsSchema
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for KrakenEmbedGetAssetListQueryParamsSchema
impl<'de> Deserialize<'de> for KrakenEmbedGetAssetListQueryParamsSchema
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 From<&KrakenEmbedGetAssetListQueryParamsSchema> for KrakenEmbedGetAssetListQueryParamsSchema
impl From<&KrakenEmbedGetAssetListQueryParamsSchema> for KrakenEmbedGetAssetListQueryParamsSchema
Source§fn from(value: &KrakenEmbedGetAssetListQueryParamsSchema) -> Self
fn from(value: &KrakenEmbedGetAssetListQueryParamsSchema) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KrakenEmbedGetAssetListQueryParamsSchema
impl RefUnwindSafe for KrakenEmbedGetAssetListQueryParamsSchema
impl Send for KrakenEmbedGetAssetListQueryParamsSchema
impl Sync for KrakenEmbedGetAssetListQueryParamsSchema
impl Unpin for KrakenEmbedGetAssetListQueryParamsSchema
impl UnsafeUnpin for KrakenEmbedGetAssetListQueryParamsSchema
impl UnwindSafe for KrakenEmbedGetAssetListQueryParamsSchema
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