22 lines
537 B
Rust
22 lines
537 B
Rust
use crate::database::page::Page;
|
|
use crate::database::schema::Schema;
|
|
use serde::{Deserialize, Serialize};
|
|
use std::sync::Arc;
|
|
|
|
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
|
|
#[serde(default)]
|
|
pub struct Punc {
|
|
pub id: String,
|
|
pub r#type: String,
|
|
pub name: String,
|
|
pub module: String,
|
|
pub source: String,
|
|
pub description: Option<String>,
|
|
pub public: bool,
|
|
pub form: bool,
|
|
pub get: Option<String>,
|
|
pub page: Option<Page>,
|
|
#[serde(default)]
|
|
pub schemas: std::collections::BTreeMap<String, Arc<Schema>>,
|
|
}
|