Commit graph

7 commits

Author SHA1 Message Date
gak 8c059769ee
refactor!: Rename Api to OwnerApi. Remove ResponseData<T>. Add VehicleApi trait.
Significant refactor to progress towards different API access that Tesla
has introduced. See issues #6 and #7.

Removed `ResponseData` because it wasn't very ergonomic, forcing the user
to deref or call data(). Also it had specific fields for JSON output
which was only used for the CLI, so I introduced a field
`print_responses` in OwnerApi that the CLI can use.
2023-10-22 09:17:32 +11:00
gak 5c018e9f8d
refactor: request tweaks 2023-08-30 14:04:46 +10:00
gak 900be5aa1f
feat: cli show json on POST and some errors 2023-08-29 16:13:43 +10:00
gak f1f2c2e566
doc: document calendar history a bit 2023-08-29 13:55:02 +10:00
gak 8881d0fa59
feat: cli only prints json, cli-pretty-json feature 2023-08-29 13:11:28 +10:00
gak e3c1044dd3
refactor: split up cli, more crate version updates 2023-08-29 11:33:03 +10:00
gak 635bd84384
refactor: cli to be a binary with cli feature 2023-08-29 10:49:04 +10:00