pub struct Hit {
pub index: Index,
pub kernel: Rc<HitKernel>,
/* private fields */
}
Fields§
§index: Index
§kernel: Rc<HitKernel>
Implementations§
source§impl Hit
impl Hit
pub fn new( id: &str, model_type: &str, kernel: Rc<HitKernel> ) -> Result<Hit, HitError>
pub fn import( &mut self, hit: Hit, parent: IndexEntryProperty ) -> Result<(), HitError>
pub fn new_with_values( id: &str, kernel: Rc<HitKernel>, values: ObjectValues, model_type: &str ) -> Result<Hit, HitError>
pub fn contains_key(&self, key: &str) -> bool
pub fn insert_reference( &mut self, id: &str, target: IndexEntryProperty, before_id: Option<String> ) -> Result<(), HitError>
pub fn remove_reference( &mut self, id: &str, parent: IndexEntryProperty ) -> Result<(), HitError>
pub fn move_reference( &mut self, id: &str, target: IndexEntryProperty, before_id: Option<Id> ) -> Result<(), HitError>
pub fn get_references( &self, id: &str ) -> Result<Vec<IndexEntryProperty>, HitError>
pub fn find_references_recursive( &self, id: &str ) -> Result<(HashMap<String, Vec<IndexEntryProperty>>, Vec<String>), HitError>
pub fn remove_object(&mut self, id: &str) -> Result<Vec<String>, HitError>
pub fn can_move_object( &self, id: &str, target_id: &str, target_model: &str, property: &str ) -> Result<(), HitError>
pub fn move_object( &mut self, id: &str, target: IndexEntryProperty, before_id: Option<String> ) -> Result<(), HitError>
pub fn copy_object( &mut self, id: Id, target: IndexEntryProperty, before_id: Option<String> ) -> Result<Id, HitError>
pub fn get_model(&self, id: &str) -> Option<Rc<Model>>
pub fn get(&self, id: &str) -> Option<HitEntry>
pub fn get_value(&self, id: &str, property: &str) -> Option<ObjectValue>
pub fn set( &mut self, id: &str, property: &str, value: ObjectValue ) -> Result<(), HitError>
pub fn insert( &mut self, model_type: &str, id: &str, values: ObjectValues, parent: IndexEntryProperty, before_id: Option<String> ) -> Result<(), HitError>
pub fn get_plugins(&self) -> &Plugins
pub fn get_main_object_id(&self) -> &Id
pub fn subscribe_field( &self, id: &str, field: &str, listener: FieldListenerRef<ObjectValue> ) -> Result<String, HitError>
pub fn unsubscribe_field( &self, id: &str, field: &str, listener_id: &str ) -> Result<(), HitError>
pub fn get_parent(&self, id: &str) -> Option<IndexEntryProperty>
pub fn get_parent_index(&self, id: &str) -> Option<usize>
pub fn validate_field( &mut self, id: &str, property: &str ) -> Result<(), HitError>
pub fn get_validation_errors( &self, id: &str, field: &str ) -> Option<&Vec<ValidationError>>
pub fn subscribe_field_validation( &mut self, id: &str, field: &str, listener: FieldListenerRef<Vec<ValidationError>> )
pub fn unsubscribe_field_validation( &mut self, id: &str, field: &str, listener_id: &str ) -> Result<(), HitError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Hit
impl !Send for Hit
impl !Sync for Hit
impl Unpin for Hit
impl !UnwindSafe for Hit
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