pub struct HierarchyConfig {
pub table: String,
pub path_column: String,
}Expand description
Configuration for a single hierarchy used by ID-based ltree operators.
Defines the database table and ltree path column for a named hierarchy.
The id column is always id (UUID) per the trinity pattern — not configurable.
Fields§
§table: StringDatabase table containing the ltree column (e.g., "tb_category").
path_column: StringName of the ltree column in the table (e.g., "category_path").
Implementations§
Trait Implementations§
Source§impl Clone for HierarchyConfig
impl Clone for HierarchyConfig
Source§fn clone(&self) -> HierarchyConfig
fn clone(&self) -> HierarchyConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HierarchyConfig
impl Debug for HierarchyConfig
Source§impl<'de> Deserialize<'de> for HierarchyConfig
impl<'de> Deserialize<'de> for HierarchyConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HierarchyConfig
impl RefUnwindSafe for HierarchyConfig
impl Send for HierarchyConfig
impl Sync for HierarchyConfig
impl Unpin for HierarchyConfig
impl UnsafeUnpin for HierarchyConfig
impl UnwindSafe for HierarchyConfig
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