use super::{
domain::Domain,
upath::UPath,
manifest::Manifest4,
};
use serde::{Deserialize, Serialize};
use aptos_openapi_link::impl_poem_type;
impl_poem_type!(Namespace, "object", ());
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct Namespace {
_domain: Domain,
path: UPath,
}
impl Namespace {
pub async fn new(_domain: Domain, path: UPath) -> Self {
Namespace {
_domain,
path,
}
}
pub fn to_string(&self) -> String {
format!("Namespace({})^{}", self.path.to_string(), self._domain.to_string())
}
pub async fn manifest_from_key(_manifest_tag: &str) -> Option<Manifest4> {
unimplemented!()
}
pub async fn manifest_keys(&self) -> Vec<String> {
unimplemented!()
}
pub async fn manifest_objects(&self) -> Vec<Manifest4> {
unimplemented!()
}
}