mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2025-12-12 18:29:00 -05:00
10 lines
297 B
Rust
10 lines
297 B
Rust
|
|
pub trait Data {
|
||
|
|
pub fn index_pdu<'a>(&self, room_id: &RoomId, pdu_id: u64, message_body: String) -> Result<()>;
|
||
|
|
|
||
|
|
pub fn search_pdus<'a>(
|
||
|
|
&'a self,
|
||
|
|
room_id: &RoomId,
|
||
|
|
search_string: &str,
|
||
|
|
) -> Result<Option<(impl Iterator<Item = Vec<u8>> + 'a, Vec<String>)>>;
|
||
|
|
}
|