mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-22 16:02:24 +00:00
36 lines
976 B
Rust
36 lines
976 B
Rust
/*
|
|
* Author: Ruben Fiszel
|
|
* Copyright: Windmill Labs, Inc 2022
|
|
* This file and its contents are licensed under the AGPLv3 License.
|
|
* Please see the included NOTICE for copyright information and
|
|
* LICENSE-AGPL for a copy of the license.
|
|
*/
|
|
|
|
use std::{collections::HashMap, sync::Arc};
|
|
|
|
use serde::{Deserialize, Serialize};
|
|
use tokio::sync::RwLock;
|
|
|
|
lazy_static::lazy_static! {
|
|
pub static ref APP_WORKSPACED_ROUTE: Arc<RwLock<bool>> = Arc::new(RwLock::new(false));
|
|
}
|
|
|
|
/// Id in the `app_script` table.
|
|
#[derive(Serialize, Deserialize, Debug, Copy, Clone, Hash, Eq, PartialEq)]
|
|
#[serde(transparent)]
|
|
pub struct AppScriptId(pub i64);
|
|
|
|
#[derive(Deserialize)]
|
|
pub struct ListAppQuery {
|
|
pub starred_only: Option<bool>,
|
|
pub path_exact: Option<String>,
|
|
pub path_start: Option<String>,
|
|
pub include_draft_only: Option<bool>,
|
|
pub with_deployment_msg: Option<bool>,
|
|
}
|
|
|
|
#[derive(Deserialize)]
|
|
pub struct RawAppValue {
|
|
pub files: HashMap<String, String>,
|
|
}
|