Struct midgard_rs::GetActionList
source · pub struct GetActionList {Show 13 fields
pub address: Option<Vec<String>>,
pub txid: Option<String>,
pub asset: Vec<String>,
pub action_type: Option<Vec<String>>,
pub affiliate: Option<Vec<String>>,
pub limit: u64,
pub offset: Option<u64>,
pub next_page_token: Option<u64>,
pub timestamp: Option<u64>,
pub height: Option<u64>,
pub prev_page_token: Option<u64>,
pub from_timestamp: Option<u64>,
pub from_height: Option<u64>,
}Fields§
§address: Option<Vec<String>>Address of sender or recipient of any in/out transaction related to the action.
txid: Option<String>ID of any in/out tx related to the action
asset: Vec<String>Any asset that is part of the action (CHAIN.SYMBOL). Additionally, synth, nosynth, and norune filters can be used for swap, add/withdraw actions.
action_type: Option<Vec<String>>One or more unique types of action (swap, addLiquidity, withdraw, donate, refund, switch).
affiliate: Option<Vec<String>>Affiliate address of the action (swap, refund).
limit: u64Number of actions returned, default is 50.
offset: Option<u64>Pagination offset, default is 0.
next_page_token: Option<u64>If this is given, the actions for the next page will be given.
timestamp: Option<u64>If this is given, the actions older than the timestamp will be given.
height: Option<u64>If this is given, the actions older than the height will be given.
prev_page_token: Option<u64>If this is given, the actions for the previous page will be given.
from_timestamp: Option<u64>If this is given, the actions newer than the timestamp will be given.
from_height: Option<u64>If this is given, the actions newer than the height will be given.
Implementations§
source§impl GetActionList
impl GetActionList
pub fn new(asset: Vec<String>, limit: u64) -> Self
pub fn set_address(&mut self, address: Vec<String>)
pub fn set_txid(&mut self, txid: String)
pub fn set_action_type(&mut self, action_type: Vec<String>)
pub fn set_affiliate(&mut self, affiliate: Vec<String>)
pub fn set_offset(&mut self, offset: u64)
pub fn set_next_page_token(&mut self, next_page_token: u64)
pub fn set_timestamp(&mut self, timestamp: u64)
pub fn set_height(&mut self, height: u64)
pub fn set_prev_page_token(&mut self, prev_page_token: u64)
pub fn set_from_timestamp(&mut self, from_timestamp: u64)
pub fn set_from_height(&mut self, from_height: u64)
pub fn set_limit(&mut self, limit: u64)
Trait Implementations§
source§impl Clone for GetActionList
impl Clone for GetActionList
source§fn clone(&self) -> GetActionList
fn clone(&self) -> GetActionList
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more