pub struct ClosureTreeConfig { /* private fields */ }Expand description
Static configuration describing how a SeaORM model integrates with the closure-table hierarchy.
Implementations§
Source§impl ClosureTreeConfig
impl ClosureTreeConfig
Sourcepub fn new(
entity_name: impl Into<String>,
hierarchy_name: impl Into<String>,
) -> Self
pub fn new( entity_name: impl Into<String>, hierarchy_name: impl Into<String>, ) -> Self
Create a new configuration using the logical entity and hierarchy names.
Sourcepub fn entity_name(&self) -> &str
pub fn entity_name(&self) -> &str
Human-readable Rust struct name for the base entity.
Sourcepub fn hierarchy_name(&self) -> &str
pub fn hierarchy_name(&self) -> &str
Associated SeaORM entity name for the hierarchy model.
Sourcepub fn parent_column(&self) -> &str
pub fn parent_column(&self) -> &str
Column name storing the parent foreign key.
Sourcepub fn name_column(&self) -> &str
pub fn name_column(&self) -> &str
Column name storing the display name.
Sourcepub fn hierarchy_table(&self) -> &str
pub fn hierarchy_table(&self) -> &str
Table backing the hierarchy entity.
Sourcepub fn dependent_behavior(&self) -> DependentBehavior
pub fn dependent_behavior(&self) -> DependentBehavior
Dependent behavior when deleting nodes.
Sourcepub fn order_strategy(&self) -> Option<&OrderStrategy>
pub fn order_strategy(&self) -> Option<&OrderStrategy>
Ordering strategy to apply when returning descendants.
Sourcepub fn advisory_lock_strategy(&self) -> &AdvisoryLockStrategy
pub fn advisory_lock_strategy(&self) -> &AdvisoryLockStrategy
Advisory lock strategy (PostgreSQL only).
Trait Implementations§
Source§impl Clone for ClosureTreeConfig
impl Clone for ClosureTreeConfig
Source§fn clone(&self) -> ClosureTreeConfig
fn clone(&self) -> ClosureTreeConfig
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 moreAuto Trait Implementations§
impl Freeze for ClosureTreeConfig
impl RefUnwindSafe for ClosureTreeConfig
impl Send for ClosureTreeConfig
impl Sync for ClosureTreeConfig
impl Unpin for ClosureTreeConfig
impl UnsafeUnpin for ClosureTreeConfig
impl UnwindSafe for ClosureTreeConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more