anvil-api 0.5.3

Rust gRPC API types for Anvil object storage
Documentation

anvil-api

Generated Rust messages and gRPC clients for the Anvil 0.5 protocol.

Most applications should depend on anvil-storage, which adds authenticated client constructors and upload helpers. Use anvil-api directly when integrating the generated protocol types with a custom transport.

use anvil_api::v1::{HeadObjectRequest, ObjectAddress};

let request = HeadObjectRequest {
    address: Some(ObjectAddress {
        tenant: "example".into(),
        bucket: "documents".into(),
        path: "reports/annual.pdf".into(),
    }),
};

assert_eq!(request.address.unwrap().path, "reports/annual.pdf");