Skip to main content

surrealdb_expr/expr/statements/define/config/
defaults.rs

1use crate::expr::{Expr, Literal};
2
3#[derive(Clone, Debug, Eq, PartialEq, Hash)]
4pub struct DefaultConfig {
5	pub namespace: Expr,
6	pub database: Expr,
7}
8
9impl Default for DefaultConfig {
10	fn default() -> Self {
11		Self {
12			namespace: Expr::Literal(Literal::None),
13			database: Expr::Literal(Literal::None),
14		}
15	}
16}