pub trait ReferencePlugin {
// Required methods
fn on_before_add_reference(
&mut self,
instance: &mut Hit,
reference_id: &Id,
target: &IndexEntryProperty,
before_id: &Option<String>,
) -> Result<(), HitError>;
fn on_after_add_reference(
&mut self,
instance: &mut Hit,
reference_id: &Id,
target: &IndexEntryProperty,
before_id: &Option<String>,
) -> Result<(), HitError>;
fn on_before_move_reference(
&mut self,
instance: &mut Hit,
reference_id: &Id,
target: &IndexEntryProperty,
before_id: &Option<String>,
) -> Result<(), HitError>;
fn on_after_move_reference(
&mut self,
instance: &mut Hit,
reference_id: &Id,
target: &IndexEntryProperty,
before_id: &Option<String>,
) -> Result<(), HitError>;
fn on_before_remove_reference(
&mut self,
instance: &mut Hit,
reference_id: &Id,
target: &IndexEntryProperty,
) -> Result<(), HitError>;
fn on_after_remove_reference(
&mut self,
instance: &mut Hit,
reference_id: &Id,
target: &IndexEntryProperty,
) -> Result<(), HitError>;
}Required Methods§
fn on_before_add_reference( &mut self, instance: &mut Hit, reference_id: &Id, target: &IndexEntryProperty, before_id: &Option<String>, ) -> Result<(), HitError>
fn on_after_add_reference( &mut self, instance: &mut Hit, reference_id: &Id, target: &IndexEntryProperty, before_id: &Option<String>, ) -> Result<(), HitError>
fn on_before_move_reference( &mut self, instance: &mut Hit, reference_id: &Id, target: &IndexEntryProperty, before_id: &Option<String>, ) -> Result<(), HitError>
fn on_after_move_reference( &mut self, instance: &mut Hit, reference_id: &Id, target: &IndexEntryProperty, before_id: &Option<String>, ) -> Result<(), HitError>
fn on_before_remove_reference( &mut self, instance: &mut Hit, reference_id: &Id, target: &IndexEntryProperty, ) -> Result<(), HitError>
fn on_after_remove_reference( &mut self, instance: &mut Hit, reference_id: &Id, target: &IndexEntryProperty, ) -> Result<(), HitError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".