feat(revcord): inital revcord commit

This commit is contained in:
Zomatree
2022-06-02 17:02:14 +01:00
parent 252a116766
commit b0313b8acb
18 changed files with 706 additions and 8 deletions

View File

@@ -0,0 +1,24 @@
mod models;
pub use twilight_model;
pub use models::{channel, user};
use async_trait::async_trait;
#[async_trait]
pub trait QuarkConversion: Sized {
type Type;
async fn to_quark(self) -> Self::Type;
async fn from_quark(data: Self::Type) -> Self;
}
pub fn to_snowflake<T, S: ToString>(ulid: S) -> twilight_model::id::Id<T> {
todo!()
}
pub fn to_ulid<T>(snowflake: twilight_model::id::Id<T>) -> String {
todo!()
}