mirror of
https://github.com/lune-org/lune.git
synced 2025-01-10 13:19:11 +00:00
47 lines
1.1 KiB
Rust
47 lines
1.1 KiB
Rust
|
use std::collections::HashMap;
|
||
|
|
||
|
use serde::{Deserialize, Serialize};
|
||
|
|
||
|
#[derive(Serialize, Deserialize, Default, Debug)]
|
||
|
pub struct DocsGlobal {
|
||
|
pub documentation: String,
|
||
|
pub keys: HashMap<String, String>,
|
||
|
pub learn_more_link: String,
|
||
|
pub code_sample: String,
|
||
|
}
|
||
|
|
||
|
#[derive(Serialize, Deserialize, Default, Debug)]
|
||
|
pub struct DocsFunctionParamLink {
|
||
|
pub name: String,
|
||
|
pub documentation: String,
|
||
|
}
|
||
|
|
||
|
#[derive(Serialize, Deserialize, Default, Debug)]
|
||
|
pub struct DocsFunction {
|
||
|
#[serde(skip)]
|
||
|
pub global_name: String,
|
||
|
pub documentation: String,
|
||
|
pub params: Vec<DocsFunctionParamLink>,
|
||
|
pub returns: Vec<String>,
|
||
|
pub learn_more_link: String,
|
||
|
pub code_sample: String,
|
||
|
}
|
||
|
|
||
|
#[derive(Serialize, Deserialize, Default, Debug)]
|
||
|
pub struct DocsParam {
|
||
|
#[serde(skip)]
|
||
|
pub global_name: String,
|
||
|
#[serde(skip)]
|
||
|
pub function_name: String,
|
||
|
pub documentation: String,
|
||
|
}
|
||
|
|
||
|
#[derive(Serialize, Deserialize, Default, Debug)]
|
||
|
pub struct DocsReturn {
|
||
|
#[serde(skip)]
|
||
|
pub global_name: String,
|
||
|
#[serde(skip)]
|
||
|
pub function_name: String,
|
||
|
pub documentation: String,
|
||
|
}
|