Db, first commit of work
This also touches atproto/src/lib.rs which may be a problem for the rebase~ Adds migrations and all the other stuff.
This commit is contained in:
parent
3eb6aab10f
commit
aadea9757b
12 changed files with 270 additions and 82 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