[][src]Crate wataxrate

This library can be used to get tax rates for addresses in WA state! Meant to be super simple.

It gets data from DOR using its XML URL interface defined here.

Note that this needs tokio, as reqwest needs tokio!

Structs

Address

The Address parsed by DOR, returned as part of TaxInfo

TaxInfo

Tax Info provided by WA State DOR

TaxRate

Tax Rate information, returned as part of TaxInfo

Enums

Code

These codes are taken from the DOR spec;

TaxInfoError

Error retreiving tax info. DOR errors most likely mean bad input, as in a weird address

Functions

get

Has retries, reasonable timeouts, defaults, fully ready to go.

get_basic

No retries, just one attempt, no timeout, nothing