pub struct UniqueInParentPlugin { /* private fields */ }Implementations§
Source§impl UniqueInParentPlugin
impl UniqueInParentPlugin
pub fn new(index: Rc<RefCell<UniqueInParentValueIndex>>) -> Self
Trait Implementations§
Source§impl DeletePlugin for UniqueInParentPlugin
impl DeletePlugin for UniqueInParentPlugin
Source§impl InitEntryPlugin for UniqueInParentPlugin
impl InitEntryPlugin for UniqueInParentPlugin
fn on_init_add_entry( &mut self, model: Rc<Model>, id: &str, data: ObjectValues, parent: Option<IndexEntryProperty>, )
Source§impl Plugin for UniqueInParentPlugin
impl Plugin for UniqueInParentPlugin
fn on_before_add_entry( &mut self, _model: Rc<Model>, _id: &str, _data: ObjectValues, _parent: IndexEntryProperty, _before_id: &Option<Id>, _instance: &Hit, ) -> Result<(), HitError>
fn on_after_add_entry( &mut self, model: Rc<Model>, id: &str, data: ObjectValues, parent: IndexEntryProperty, _before_id: &Option<Id>, instance: &mut Hit, ) -> Result<(), HitError>
fn on_before_set_value( &mut self, _property: IndexEntryProperty, _value: &ObjectValue, _old_value: &Option<ObjectValue>, _instance: &Hit, ) -> Result<(), HitError>
fn on_after_set_value( &mut self, property: IndexEntryProperty, value: &ObjectValue, _old_value: &Option<ObjectValue>, instance: &mut Hit, ) -> Result<(), HitError>
fn on_before_move_subobject( &mut self, _id: &str, _target: IndexEntryProperty, _before_id: Option<String>, _instance: &Hit, ) -> Result<(), HitError>
fn on_after_move_subobject( &mut self, id: &str, target: IndexEntryProperty, original_parent: IndexEntryProperty, _before_id: Option<String>, instance: &mut Hit, ) -> Result<(), HitError>
Auto Trait Implementations§
impl Freeze for UniqueInParentPlugin
impl !RefUnwindSafe for UniqueInParentPlugin
impl !Send for UniqueInParentPlugin
impl !Sync for UniqueInParentPlugin
impl Unpin for UniqueInParentPlugin
impl !UnwindSafe for UniqueInParentPlugin
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