Expand description
§Remote.it API Wrapper
The most important structs are R3Client and Credentials.
To use this crate obtain your Credentials by loading them from disk using the provided methods,
or, if you want to store the credentials in another way, instantiate a Credentials struct directly.
See Credentials::load_from_disk and Credentials::builder for details and examples.
Then instantiate an R3Client using R3Client::builder and start calling the API functions on it.
§Features
- Enable
blockingto use the blocking versions of the API functions from theapi_blockingmodule. - Enable
asyncto use the asynchronous versions of the API funcitons from theapi_asyncmodule. - Enable
credentials_loaderto use theCredentials::load_from_diskfunction. This is gated behind a feature, because it introduces additional dependencies.
Modules§
- api_
async async - Enabled by the
asyncfeature. Contains blocking implementations of the pre-written queries. - api_
blocking blocking - Enabled by the
blockingfeature. Contains blocking implementations of the pre-written queries. - auth
asyncorblocking - Contains functions related to request signing for the remote.it API. They are used by this lib, but you can also use them to implement your own abstraction.
- file_
upload file_upload - Enabled by the
file_uploadfeature. Contains structs and impl blocks related to uploading files to remote.it. - operations
Structs§
- Credential
Profiles credentials_loader - A struct representing the remote.it credentials file.
- Credentials
- Credentials for the remote.it API. Remote.it credentials consist of an access key ID and a base64 encoded secret access key.
- R3Client
- A client for the remote.it API.
- R3Client
Builder - Use builder syntax to set the inputs and finish with
build().
Enums§
- Credentials
Loader Error credentials_loader - Errors that can occur during the loading of credentials from disk.
Constants§
- BASE_
URL - Base path for the remote.it API.
- FILE_
UPLOAD_ PATH - Path for file uploads. Append this to
BASE_URLto get the full URL. - GRAPHQL_
PATH - Path for the GraphQL API. Append this to
BASE_URLto get the full URL.