An open API service indexing awesome lists of open source software.

https://github.com/thevilledev/upcloud-rust-sdk

Unofficial UpCloud API client for Rust
https://github.com/thevilledev/upcloud-rust-sdk

api-client rust upcloud

Last synced: 11 months ago
JSON representation

Unofficial UpCloud API client for Rust

Awesome Lists containing this project

README

          

# upcloud-rust-sdk

[crates.io](https://crates.io/crates/upcloud-sdk)
[docs.rs](https://docs.rs/upcloud-sdk)

Unofficial UpCloud API client for Rust.

## Features

- Strongly typed API with builder patterns for request construction
- Async/await support using Tokio
- Environment variable based configuration
- Trait-based design for resource operations

## Examples

See the following:

- [Simple example](examples/server_create_simple.rs): Create a server with a minimal set of options
- [Advanced example](examples/server_create_advanced.rs): Create a server with two interfaces and poll until server is started
- [List servers](examples/server_list.rs): List all servers and utilise label filtering

## Structure

- `src/client.rs`: Client implementation
- `src/resources/*`: Resource-specific code
- `src/types/*`: Shared types
- `src/constants.rs`: Constants
- `src/error.rs`: Error handling
- `src/config.rs`: Configuration

## TODO

- Add support to other resources than Cloud Servers
- Request/response serialisation/deserialisation improvements
- Error handling
- Documentation
- Release process

## License

MIT