grafos_store/
bucket_locator.rs

1//! Locator for cross-application bucket discovery.
2
3extern crate alloc;
4use alloc::string::String;
5
6use serde::{Deserialize, Serialize};
7
8use crate::bucket_config::BucketTier;
9
10/// Locator published for cross-application bucket discovery.
11///
12/// Contains all information needed to find and access a bucket from
13/// another application or service.
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct BucketLocator {
16    /// Schema version (currently 1).
17    pub version: u8,
18    /// Bucket name.
19    pub name: String,
20    /// Pool name.
21    pub pool: String,
22    /// Storage tier.
23    pub tier: BucketTier,
24    /// Bucket generation.
25    pub generation: u64,
26    /// Creation timestamp (unix seconds).
27    pub created_at: u64,
28}