- Added
AsyncRobot::new_with_default_client
for constructing a client using only username and password, and the default client.
⚠️ revoke_ip_cancellation
renamed towithdraw_ip_cancellation
for consistency.⚠️ revoke_subnet_cancellation
renamed towithdraw_subnet_cancellation
for consistency.⚠️ withdraw_server_cancellation
now returns()
notCancellation
, as defined in the Robot API.⚠️ cancel_server
now takes anOption<Date>
, defaulting to immediate cancellation.⚠️ withdraw_server_order
removed. The API endpoint appears to have been silently removed, meaning calls to it will fail.
- Fix improper deserialization of response from calling
trigger_reset
.
⚠️ vSwitch cancellation'sdate
argument is now optional. Omitting the parameter causes immediate cancellation.- Implement PartialEq & Eq for vSwitch/server
ConnectionStatus
. - Implement PartialEq & Eq for server
Status
,SubnetReference
andServerFlags
.
⚠️ Update server pricing models to include the new hourly pricing.
- Update
hyper
dependency to1.0
. This is considered a breaking change because we expose the ability to construct your ownAsyncRobot
using a customhyper::Client
, which was removed in hyper v1.0. The Client functionality is still available in the spin-off crate hyper-util, which is also whathrobot-rs
uses now. - Switch to using the rustls built-in webpki roots by default, instead of native roots. This is potentially a breaking change, but in all likelihood, this won't impact you unless you're behind an intercepting firewall man-in-the-middling your traffic. If you need to override this behaviour, see AsyncRobot::new for information about providing your own customized hyper client.
- Update
serial_test
dependency to v3.0.0
- Replace Decimal export with rust_decimal re-export.
- Replace ByteSize export with bytesize re-export.
- Fix doc and test references to the above exports.
- Remove explicit crate links where unnecessary.
- Correctly handle Hetzner API returning
null
server ips as an empty vec #5
- Stable release of rewritten crate with 100% Hetzner API coverage.