pub struct ListAssetsParams {
pub status: Option<AssetStatus>,
pub asset_class: Option<String>,
pub exchange: Option<String>,
pub attributes: Option<String>,
}Expand description
Parameters for listing assets.
Fields§
§status: Option<AssetStatus>Filter by status.
asset_class: Option<String>Filter by asset class.
exchange: Option<String>Filter by exchange.
attributes: Option<String>Filter by attributes.
Implementations§
Source§impl ListAssetsParams
impl ListAssetsParams
Sourcepub fn new() -> ListAssetsParams
pub fn new() -> ListAssetsParams
Create new empty parameters.
Sourcepub fn status(self, status: AssetStatus) -> ListAssetsParams
pub fn status(self, status: AssetStatus) -> ListAssetsParams
Filter by status.
Sourcepub fn asset_class(self, asset_class: &str) -> ListAssetsParams
pub fn asset_class(self, asset_class: &str) -> ListAssetsParams
Filter by asset class.
Sourcepub fn exchange(self, exchange: &str) -> ListAssetsParams
pub fn exchange(self, exchange: &str) -> ListAssetsParams
Filter by exchange.
Sourcepub fn attributes(self, attributes: &str) -> ListAssetsParams
pub fn attributes(self, attributes: &str) -> ListAssetsParams
Filter by attributes.
Trait Implementations§
Source§impl Clone for ListAssetsParams
impl Clone for ListAssetsParams
Source§fn clone(&self) -> ListAssetsParams
fn clone(&self) -> ListAssetsParams
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 Debug for ListAssetsParams
impl Debug for ListAssetsParams
Source§impl Default for ListAssetsParams
impl Default for ListAssetsParams
Source§fn default() -> ListAssetsParams
fn default() -> ListAssetsParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ListAssetsParams
impl<'de> Deserialize<'de> for ListAssetsParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ListAssetsParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ListAssetsParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ListAssetsParams
impl Serialize for ListAssetsParams
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ListAssetsParams
impl RefUnwindSafe for ListAssetsParams
impl Send for ListAssetsParams
impl Sync for ListAssetsParams
impl Unpin for ListAssetsParams
impl UnwindSafe for ListAssetsParams
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