mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
18 lines
304 B
Rust
18 lines
304 B
Rust
mod data;
|
|
pub use data::Data;
|
|
use ruma::RoomId;
|
|
|
|
use crate::Result;
|
|
|
|
pub struct Service {
|
|
db: Box<dyn Data>,
|
|
}
|
|
|
|
impl Service {
|
|
/// Checks if a room exists.
|
|
#[tracing::instrument(skip(self))]
|
|
pub fn exists(&self, room_id: &RoomId) -> Result<bool> {
|
|
self.db.exists(room_id)
|
|
}
|
|
}
|