Struct mercury::Mercury [] [src]

pub struct Mercury(_);

A client used to make requests to the Mercury Parser.

Methods

impl Mercury
[src]

[src]

Create a new Mercury client.

Example

let core = Core::new()?;
let handle = core.handle();

let key = env::var("MERCURY_API_KEY")?;
let client = Mercury::new(&handle, key)?;

[src]

Return a reference to a handle to the event loop this client is associated with.

[src]

Returns a reference to the API key associated with this client.

[src]

Send a request to the Mercury Parser API using this client.

Example

let future = client.parse("https://example.com").inspect(|article| {
    println!("{:#?}", article);
});

Trait Implementations

impl Debug for Mercury
[src]

[src]

Formats the value using the given formatter.

impl Clone for Mercury
[src]

[src]

Increments the strong reference count of the underlying Rc pointer.

1.0.0
[src]

Performs copy-assignment from source. Read more