15 lines
437 B
Rust
15 lines
437 B
Rust
use askama::Template;
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
use crate::{User, Watch};
|
|
|
|
#[derive(Debug, Default, Template, Deserialize, Serialize, PartialEq, Eq)]
|
|
#[template(path = "get_watches.html")]
|
|
pub struct GetWatches {
|
|
pub watches: Vec<Watch>,
|
|
pub user: Option<User>,
|
|
}
|
|
|
|
#[derive(Debug, Default, Template, Deserialize, Serialize, PartialEq, Eq)]
|
|
#[template(path = "get_search_watches.html")]
|
|
pub struct GetSearchWatches {}
|