pub struct Slugged {
pub from: &'static str,
}Fields§
§from: &'static strTrait Implementations§
Source§impl Behavior for Slugged
impl Behavior for Slugged
Source§fn written(&self, write: &Write<'_>, values: &mut [SqlValue])
fn written(&self, write: &Write<'_>, values: &mut [SqlValue])
An unchanged from keeps its slug, so a later transliteration does not move the record.
Source§fn planned(&self, write: &Write<'_>, plan: &mut Plan<'_>) -> Result<()>
fn planned(&self, write: &Write<'_>, plan: &mut Plan<'_>) -> Result<()>
A slug taken now is no longer another record’s previous one; a deleted record keeps none.
Source§fn columns(&self) -> &'static [Field]
fn columns(&self) -> &'static [Field]
Stored after the id and before the aggregate’s own fields.
Source§fn pruned(&self, schema: &str, name: &str, ids: &[Uuid], plan: &mut Plan<'_>)
fn pruned(&self, schema: &str, name: &str, ids: &[Uuid], plan: &mut Plan<'_>)
Runs when retention hard-deletes
ids from the aggregate’s table schema.name.fn guards(&self) -> bool
fn hides(&self) -> Option<&'static str>
fn broadcasts(&self) -> bool
fn searched(&self) -> bool
fn search_fields(&self) -> &'static [SearchedField] ⓘ
Auto Trait Implementations§
impl Forget for Slugged
impl Freeze for Slugged
impl RefUnwindSafe for Slugged
impl Send for Slugged
impl Sync for Slugged
impl Unpin for Slugged
impl UnsafeUnpin for Slugged
impl UnwindSafe for Slugged
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