Crate uploads_im_client [−] [src]
Uploads.im Client
This crate is a thin wrapper that models the Uploads.im web API. Currently,
the only functionality available to Uploads.im users is the upload
endpoint.
Examples
extern crate uploads_im_client; fn main() { let uploaded_image = uploads_im_client::upload_with_default_options("my_image.jpg").expect("successful image upload"); println!("Uploaded image! You can now view it at {}", uploaded_image.view_url.to_string()); }
Structs
ImageReference |
An abstract struct that encapsulates an image entry on the Uploads.im site. |
Rectangle |
An abstract struct that represents a rectangular area. |
UploadOptions |
Models options exposed to users of the upload API. |
UploadOptionsBuilder |
Builder for |
UploadedImage |
Represents a completed image upload to Uploads.im. |
Enums
UploadError |
Represents an error that may occur when building and sending an image upload request. |
UploadRequestURLBuildError |
Represents an error that can occur when building an upload API URL. |
Constants
DEFAULT_HOST |
The default host that the Uploads.im service uses in production. |
Functions
build_upload_url |
Builds an upload endpoint URL given some |
upload |
Uploads an image file denoted by |
upload_with_default_options |
Uploads an image file denoted by |
Type Definitions
FullSizeDimension |
The integral type that full image dimensions use. |
ThumbnailDimension |
The integral type that thumbnail image dimensions use. |