BlueGit

ict rusty-teams

Files

rusty-teams / crates / core / src / gifs.rs

gifs.rs

gifs.rs 310 B Download Raw
1use chatsvc::Gif;
2
3use crate::engine::SyncEngine;
4use crate::error::Result;
5use crate::remote::Remote;
6
7impl<R: Remote> SyncEngine<R> {
8 /// An empty query returns the trending GIFs.
9 pub async fn search_gifs(&self, query: &str) -> Result<Vec<Gif>> {
10 self.remote.search_gifs(query).await
11 }
12}