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:
parent
62f32da927
commit
9d8fb730ba
8 changed files with 218 additions and 60 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue