Some work on interfaces

I'm not happy. It kinda sucks right now. I hope I can fix it~~~~~

But for now I must move to my laptop
This commit is contained in:
Julia Lange 2025-06-11 17:29:59 -07:00
parent 62f32da927
commit 9d8fb730ba
Signed by: Julia
SSH key fingerprint: SHA256:KI8YxpkPRbnDRkXPgCuQCVz181++Vy7NAvmQj8alOhM
8 changed files with 218 additions and 60 deletions

View file

@ -1,17 +1,37 @@
use lazy_regex::regex_captures;
use core::str::FromStr;
use std::fmt::{
Display, Formatter, Result as FmtResult
};
pub use atrium_api::types::{
Collection,
string::{
AtIdentifier as Authority,
Datetime,
Did,
Nsid,
RecordKey,
AtIdentifier as Authority,
Tid,
Handle,
}
};
pub mod lexicons;
pub struct Cid(String);
impl Display for Cid {
fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult {
write!(f, "{}", self.0)
}
}
pub struct StrongRef<T> {
pub content: T,
pub cid: Cid,
}
pub struct Uri {
whole: String,
// These fields could be useful in the future,