Struct fugle::crawler::IntradayBuilder[][src]

pub struct IntradayBuilder { /* fields omitted */ }
Expand description

Accumulates options towards building an Intraday instance.

Implementations

Returns a default IntradayBuilder with

  • fugle “demo” token
  • [ default ureq agent settings ] ( https://github.com/algesten/ureq/blob/main/src/agent.rs#L202 )

Setup your personal fugle token.

By default the IntradayBuilder using fugle demo token which has limitations on querying, please login into below web page https://developer.fugle.tw/ then find your personal token.

Example:

let agent = IntradayBuilder::new()
    .token("b52153ae36747b17c8bdee801da19542")
    .build();

Setup http read timeout option.

By default there is no read timeout.

Example:

let agent = IntradayBuilder::new()
    .read_timeout_sec(10) // set read timeout in 10 seconds
    .build();

Create a new Intraday instance.

Example:

let agent = IntradayBuilder::new().build();

Trait Implementations

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.