Struct iplocate::Lookup[][src]

pub struct Lookup<'a> { /* fields omitted */ }

This type allows customization of lookup function.

Methods

impl<'a> Lookup<'a>
[src]

Constructs a new Lookup.

Sets the response's format.

Sets the IPLocate API's key.

Sets the JSONP callback.

Requests for data without deserializing its content. Returns a String on success.

Requests for data and deserializes its content. Returns an IpLocate on success.

By default, this method sets self.format to be JSON type and self.callback to be empty. Otherwise, it would panic at runtime.

Auto Trait Implementations

impl<'a> Send for Lookup<'a>

impl<'a> Sync for Lookup<'a>