[][src]Struct pikmin::downloader::liquid::LiquidDownloader

pub struct LiquidDownloader { /* fields omitted */ }

A pre-built downloader for Liquid.

Methods

impl LiquidDownloader[src]

pub fn new(start: DateTime<Utc>, end: DateTime<Utc>) -> Self[src]

Creates a new downloader with a specific range. The input source is fixed.

Trait Implementations

impl Downloader for LiquidDownloader[src]

type IDT = DateTime<Utc>

A type of element which ID is made up of.

type ID = DateTimeID

A type of ID for specifying the downloading point in an API client.

type RAW = LiquidGetExecution

A type of downloaded trade data.

fn output(&self, u: Vec<Trade>, writer: &mut impl Writer) -> Result<Self::IDT>[src]

Liquid (by Quoine) API has inconsistent statements in the document (https://developers.quoine.com/#get-executions-by-timestamp). As Get Executions by Timestamp won't return the complete executions at the same timestamp, this function has to re-request the executions for the timestamp so as to obtain all of them.

Errors

In order to avoid an infinite loop, this function will return an error when there are more than 1,000 executions at the same timestamp.

fn init_id(
    &self,
    default: Self::IDT,
    recorder: &mut impl ProgressRecorder
) -> Result<Self::ID>
[src]

Returns initial ID from a progress file. If reading is failed, use a given default value.

fn run(
    &self,
    writer: &mut impl Writer,
    recorder: &mut impl ProgressRecorder
) -> Result<()>
[src]

Executes downloading.

impl Debug for LiquidDownloader[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Erased for T

impl<T> Same for T

type Output = T

Should always be Self