37 lines
No EOL
916 B
Rust
37 lines
No EOL
916 B
Rust
// Copyright Melody 2023. Licensed under the EUPL-1.2 or later
|
|
|
|
use crate::storage;
|
|
|
|
struct PostgressDB {
|
|
|
|
}
|
|
|
|
impl storage::StorageAccess for PostgressDB {
|
|
fn store_message<E>(user: &str, message: &str) -> Result<storage::MediaID, E> {
|
|
todo!()
|
|
}
|
|
|
|
fn get_message<E>(user: &str, id: &storage::MessageID) -> Result<String, E> {
|
|
todo!()
|
|
}
|
|
|
|
fn delete_message<T, E>(id: &storage::MessageID) -> Result<T, E> {
|
|
todo!()
|
|
}
|
|
|
|
fn edit_message<T, E>(id: &storage::MessageID, message: &str) -> Result<T, E> {
|
|
todo!()
|
|
}
|
|
|
|
fn store_media<E>(f: &tokio::fs::File, nsfw: bool, alt_text: Option<&str>) -> Result<storage::MediaID, E> {
|
|
todo!()
|
|
}
|
|
|
|
fn get_media<E>(id: &storage::MediaID) -> Result<(tokio::fs::File, bool, Option<String>), E> {
|
|
todo!()
|
|
}
|
|
|
|
fn delete_media<T, E>(id: &storage::MediaID) -> Result<T, E> {
|
|
todo!()
|
|
}
|
|
} |