garage-sdk 0.1.1

Async Rust SDK for Garage S3-compatible storage with uploads and public URL generation
Documentation
use serde::{Deserialize, Serialize};

/// Result of a successful upload operation.
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct UploadResult {
    /// The bucket where the file was uploaded.
    pub bucket: String,

    /// The object key in the bucket.
    pub key: String,

    /// The public URL to access the file.
    pub public_url: String,

    /// The ETag returned by S3 (usually the MD5 hash).
    pub etag: Option<String>,

    /// The content type of the uploaded file.
    pub content_type: String,

    /// The size of the uploaded file in bytes.
    pub size: u64,
}