new enum instead of string in proto
This commit is contained in:
@@ -67,7 +67,7 @@ impl Selection {
|
||||
#[derive(Clone, Debug)]
|
||||
pub(crate) struct TableSummary {
|
||||
pub name: String,
|
||||
pub table_kind: String,
|
||||
pub table_kind: crate::definitions::table_definition::ManagedTableKind,
|
||||
pub global: bool,
|
||||
pub depends_on: Vec<String>,
|
||||
}
|
||||
@@ -76,7 +76,7 @@ impl TableSummary {
|
||||
/// System tables are backend-managed: the server refuses every write below
|
||||
/// on them, so the workspace does not offer the panels either.
|
||||
pub(crate) fn is_system(&self) -> bool {
|
||||
self.table_kind == "system"
|
||||
self.table_kind == crate::definitions::table_definition::ManagedTableKind::System
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user