Trait hit_data::Plugin [−][src]
pub trait Plugin { 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>; }
Required methods
fn on_before_add_entry(
&mut self,
model: Rc<Model>,
id: &str,
data: ObjectValues,
parent: IndexEntryProperty,
before_id: &Option<Id>,
instance: &Hit
) -> Result<(), HitError>
[src]
&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>
[src]
&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>
[src]
&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>
[src]
&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>
[src]
&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>
[src]
&mut self,
id: &str,
target: IndexEntryProperty,
original_parent: IndexEntryProperty,
before_id: Option<String>,
instance: &mut Hit
) -> Result<(), HitError>
Implementors
impl Plugin for UniqueInParentPlugin
[src]
impl Plugin for UniqueInParentPlugin
[src]fn on_before_add_entry(
&mut self,
_model: Rc<Model>,
_id: &str,
_data: ObjectValues,
_parent: IndexEntryProperty,
_before_id: &Option<Id>,
_instance: &Hit
) -> Result<(), HitError>
[src]
&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>
[src]
&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>
[src]
&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>
[src]
&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>
[src]
&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>
[src]
&mut self,
id: &str,
target: IndexEntryProperty,
original_parent: IndexEntryProperty,
_before_id: Option<String>,
instance: &mut Hit
) -> Result<(), HitError>
impl Plugin for ModelTypeIndexer
[src]
impl Plugin for ModelTypeIndexer
[src]fn on_before_add_entry(
&mut self,
_model: Rc<Model>,
_id: &str,
_data: ObjectValues,
_parent: IndexEntryProperty,
_before_id: &Option<Id>,
_instance: &Hit
) -> Result<(), HitError>
[src]
&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>
[src]
&mut self,
model: Rc<Model>,
id: &str,
_data: ObjectValues,
_parent: IndexEntryProperty,
_before_id: &Option<Id>,
_instance: &mut Hit
) -> Result<(), HitError>
fn on_after_set_value(
&mut self,
_property: IndexEntryProperty,
_value: &ObjectValue,
_old_value: &Option<ObjectValue>,
_instance: &mut Hit
) -> Result<(), HitError>
[src]
&mut self,
_property: IndexEntryProperty,
_value: &ObjectValue,
_old_value: &Option<ObjectValue>,
_instance: &mut Hit
) -> Result<(), HitError>
fn on_before_set_value(
&mut self,
_property: IndexEntryProperty,
_value: &ObjectValue,
_old_value: &Option<ObjectValue>,
_instance: &Hit
) -> Result<(), HitError>
[src]
&mut self,
_property: IndexEntryProperty,
_value: &ObjectValue,
_old_value: &Option<ObjectValue>,
_instance: &Hit
) -> Result<(), HitError>
fn on_before_move_subobject(
&mut self,
_id: &str,
_target: IndexEntryProperty,
_before_id: Option<String>,
_instance: &Hit
) -> Result<(), HitError>
[src]
&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>
[src]
&mut self,
_id: &str,
_target: IndexEntryProperty,
_original_parent: IndexEntryProperty,
_before_id: Option<String>,
_instance: &mut Hit
) -> Result<(), HitError>