Rust API client for Uploadcare
Uploadcare Rust API client that handles uploads and further operations with files by wrapping Uploadcare Upload and REST APIs.
Requirements
rustc 1.43
cargo 1.43
Installation
[]
= "^0.1"
Feature Flags
By default the full
is enabled (REST and Upload API).
To reduce code size, disable default features and enable just the APIs you use:
# Example: REST API only
= { = "*", = false, = ["rest"] }
Configuration
use ucare;
use file;
use upload;
let creds = apicreds ;
// creating rest client
let config = RestConfig ;
let rest_client = new.unwrap;
// creating upload client
let config = UploadConfig ;
let upload_client = new.unwrap;
Usage
For a comprehensive list of examples, check out the API documentation. Below are a few usage examples:
let file_svc = new_svc;
let file_id = "b7c1bf20-0f4c-4ba4-b3a8-a74ebc663752";
let file_info = file_svc.info.unwrap;
println!;
let upload_svc = new_svc;
let params = FileParams ;
let file = upload_svc.file.unwrap;
println!;
Useful links
Rust API client documentation
Uploadcare documentation
Upload API reference
REST API reference
Changelog
Contributing guide
Security policy
Support