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]

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]

fn on_before_set_value(
    &mut self,
    property: IndexEntryProperty,
    value: &ObjectValue,
    old_value: &Option<ObjectValue>,
    instance: &Hit
) -> Result<(), HitError>
[src]

fn on_after_set_value(
    &mut self,
    property: IndexEntryProperty,
    value: &ObjectValue,
    old_value: &Option<ObjectValue>,
    instance: &mut Hit
) -> Result<(), HitError>
[src]

fn on_before_move_subobject(
    &mut self,
    id: &str,
    target: IndexEntryProperty,
    before_id: Option<String>,
    instance: &Hit
) -> Result<(), HitError>
[src]

fn on_after_move_subobject(
    &mut self,
    id: &str,
    target: IndexEntryProperty,
    original_parent: IndexEntryProperty,
    before_id: Option<String>,
    instance: &mut Hit
) -> Result<(), HitError>
[src]

Loading content...

Implementors

impl Plugin for UniqueInParentPlugin[src]

impl Plugin for ModelTypeIndexer[src]

Loading content...