quilt-rs 0.4.2

Rust library for accessing Quilt data packages.
Documentation
//!
//! Domain is the top-level persistent resource.
//! It wraps a UPath containing both the "registry" (named manifests)
//! and the "store" (immutable blobs).

use super:: {
    client::Client,
    upath::UPath,
    namespace::Namespace,
};
use serde::{Deserialize, Serialize};
use aptos_openapi_link::impl_poem_type;
impl_poem_type!(Domain, "object", ());

#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct Domain {
    _client: Client,
    path: UPath,
}

impl Domain {
    pub async fn new(_client: Client, path: UPath) -> Self {
        Domain {
            _client,
            path,
        }
    }

    pub fn to_string(&self) -> String {
        format!("Domain({})^{}", self.path.to_string(), self._client.to_string())
    }        

    pub async fn namespace_from_key(_pkg_name: &str) -> Option<Namespace> {
        // TODO: Implement stub for namespace_from_key
        unimplemented!()
    }

    pub async fn namespace_keys(&self) -> Vec<String> {
        // TODO: Implement stub for namespace_keys
        unimplemented!()
    }

    pub async fn namespace_objects(&self) -> Vec<Namespace> {
        // TODO: Implement stub for namespace_objects
        unimplemented!()
    }
}