mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-12 11:16:23 +02:00
12 lines
326 B
Rust
12 lines
326 B
Rust
use ruma::RoomId;
|
|
use crate::Result;
|
|
|
|
pub trait Data {
|
|
fn index_pdu<'a>(&self, shortroomid: u64, pdu_id: u64, message_body: String) -> Result<()>;
|
|
|
|
fn search_pdus<'a>(
|
|
&'a self,
|
|
room_id: &RoomId,
|
|
search_string: &str,
|
|
) -> Result<Option<(Box<dyn Iterator<Item = Vec<u8>>>, Vec<String>)>>;
|
|
}
|