mod data; pub use data::Data; use ruma::RoomId; use crate::service::*; pub struct Service { db: D, } impl Service<_> { /// Checks if a room exists. #[tracing::instrument(skip(self))] pub fn exists(&self, room_id: &RoomId) -> Result { self.db.exists(room_id) } }