pub struct UniqueCode;Expand description
From the id’s random bits; the migration adds the unique index.
Trait Implementations§
Source§impl Behavior for UniqueCode
impl Behavior for UniqueCode
Source§fn columns(&self) -> &'static [Field]
fn columns(&self) -> &'static [Field]
Stored after the id and before the aggregate’s own fields.
fn written(&self, write: &Write<'_>, values: &mut [SqlValue])
fn guards(&self) -> bool
fn hides(&self) -> Option<&'static str>
fn broadcasts(&self) -> bool
fn searched(&self) -> bool
fn search_fields(&self) -> &'static [SearchedField] ⓘ
Source§fn planned(&self, write: &Write<'_>, plan: &mut Plan<'_>) -> Result<()>
fn planned(&self, write: &Write<'_>, plan: &mut Plan<'_>) -> Result<()>
Runs once every behavior has set its columns.
Auto Trait Implementations§
impl Forget for UniqueCode
impl Freeze for UniqueCode
impl RefUnwindSafe for UniqueCode
impl Send for UniqueCode
impl Sync for UniqueCode
impl Unpin for UniqueCode
impl UnsafeUnpin for UniqueCode
impl UnwindSafe for UniqueCode
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