Pass render purpose to render

This commit is contained in:
Gregory Schier
2024-08-22 11:27:55 -07:00
parent e5ec86bfcf
commit 9cdc13b632
12 changed files with 38 additions and 25 deletions

View File

@@ -171,7 +171,7 @@ pub struct ShowToastRequest {
}
#[derive(Debug, Clone, Serialize, Deserialize, TS)]
#[serde(rename_all = "camelCase")]
#[serde(rename_all = "snake_case")]
#[ts(export)]
pub enum ToastVariant {
Custom,
@@ -294,7 +294,7 @@ pub struct CallTemplateFunctionArgs {
}
#[derive(Debug, Clone, Serialize, Deserialize, TS)]
#[serde(rename_all = "snake_case", tag = "type")]
#[serde(rename_all = "snake_case")]
#[ts(export)]
pub enum CallTemplateFunctionPurpose {
Send,