pub struct TableDefinition {
pub name: String,
pub is_pattern: bool,
pub pattern_constraint: Option<Regex>,
pub required: bool,
pub description: Option<String>,
pub fields: Vec<FieldDefinition>,
}Expand description
A table definition in the schema.
Fields§
§name: StringTable name (may include wildcards like “network.*”)
is_pattern: boolWhether this table name is a pattern (contains wildcards)
pattern_constraint: Option<Regex>Pattern constraint regex if this is a pattern table
required: boolWhether this table is required
description: Option<String>Table description
fields: Vec<FieldDefinition>Field definitions for this table
Implementations§
Source§impl TableDefinition
impl TableDefinition
Sourcepub fn find_field(&self, field_name: &str) -> Option<&FieldDefinition>
pub fn find_field(&self, field_name: &str) -> Option<&FieldDefinition>
Find a field definition by name (supports nested paths like “tcp_config.bind_address”)
Sourcepub fn get_fields(&self) -> &[FieldDefinition]
pub fn get_fields(&self) -> &[FieldDefinition]
Get all fields for this table
Trait Implementations§
Source§impl Clone for TableDefinition
impl Clone for TableDefinition
Source§fn clone(&self) -> TableDefinition
fn clone(&self) -> TableDefinition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TableDefinition
impl RefUnwindSafe for TableDefinition
impl Send for TableDefinition
impl Sync for TableDefinition
impl Unpin for TableDefinition
impl UnwindSafe for TableDefinition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more