Skip to main content

nfw_core/server/renderer/
page.rs

1use serde::{Deserialize, Serialize};
2use std::collections::HashMap;
3
4#[derive(Debug, Clone, Serialize, Deserialize, Default)]
5pub struct PageProps {
6    pub params: HashMap<String, String>,
7    pub search_params: HashMap<String, Vec<String>>,
8}
9
10#[derive(Debug, Clone, Serialize, Deserialize, Default)]
11pub struct PageMetadata {
12    pub title: Option<String>,
13    pub description: Option<String>,
14    pub layout: Option<String>,
15}