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: u64

Number 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

source

pub fn new(asset: Vec<String>, limit: u64) -> Self

source

pub fn set_address(&mut self, address: Vec<String>)

source

pub fn set_txid(&mut self, txid: String)

source

pub fn set_action_type(&mut self, action_type: Vec<String>)

source

pub fn set_affiliate(&mut self, affiliate: Vec<String>)

source

pub fn set_offset(&mut self, offset: u64)

source

pub fn set_next_page_token(&mut self, next_page_token: u64)

source

pub fn set_timestamp(&mut self, timestamp: u64)

source

pub fn set_height(&mut self, height: u64)

source

pub fn set_prev_page_token(&mut self, prev_page_token: u64)

source

pub fn set_from_timestamp(&mut self, from_timestamp: u64)

source

pub fn set_from_height(&mut self, from_height: u64)

source

pub fn set_limit(&mut self, limit: u64)

Trait Implementations§

source§

impl Clone for GetActionList

source§

fn clone(&self) -> GetActionList

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for GetActionList

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for GetActionList

source§

fn default() -> GetActionList

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for GetActionList

source§

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 Serialize for GetActionList

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,