ducc / gocardless-rs

An unofficial rust library to interact with the GoCardless Bank Account Data API
MIT License
0 stars 1 forks source link

Return custom error type #5

Open afajl opened 5 months ago

afajl commented 5 months ago

The library currently returns Box which is not Send + Sync or Sized making it hard to use as a client.

If you're ok with it I can have a go at implementing a custom error type for this library inspired by https://sabrinajewson.org/blog/errors.

I'm thinking of three main errors types:

ducc commented 5 months ago

Hey @afajl apologies for the slow reply!

Yes feel free to have a go, I'll be giving this library some love soon as I've just started using it myself :)