add reposts/quotes

fix #2
This commit is contained in:
trisua 2025-04-10 18:16:52 -04:00
parent 15e24b9a61
commit df32b9d65e
43 changed files with 708 additions and 234 deletions

View file

@ -54,14 +54,14 @@ impl ToString for Error {
}
}
impl<T> Into<ApiReturn<T>> for Error
impl<T> From<Error> for ApiReturn<T>
where
T: Default + Serialize,
{
fn into(self) -> ApiReturn<T> {
fn from(val: Error) -> Self {
ApiReturn {
ok: false,
message: self.to_string(),
message: val.to_string(),
payload: T::default(),
}
}