pub struct SoftDeleteConfig {
pub column: String,
pub not_deleted_value: Value,
pub deleted_value: Value,
}Expand description
软删除配置
Fields§
§column: String软删除标记列名(如 “deleted”、“is_deleted”、“deleted_at”)
not_deleted_value: Value未删除时的值(通常为 0 / false / NULL)
deleted_value: Value已删除时的值(通常为 1 / true / 当前时间字符串)
Trait Implementations§
Source§impl Clone for SoftDeleteConfig
impl Clone for SoftDeleteConfig
Source§fn clone(&self) -> SoftDeleteConfig
fn clone(&self) -> SoftDeleteConfig
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 SoftDeleteConfig
impl RefUnwindSafe for SoftDeleteConfig
impl Send for SoftDeleteConfig
impl Sync for SoftDeleteConfig
impl Unpin for SoftDeleteConfig
impl UnsafeUnpin for SoftDeleteConfig
impl UnwindSafe for SoftDeleteConfig
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,
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