Struct hit_data::Hit [−][src]
Fields
kernel: Rc<HitKernel>
Implementations
impl Hit
[src]
impl Hit
[src]pub fn new(
id: &str,
model_type: &str,
kernel: Rc<HitKernel>
) -> Result<Hit, HitError>
[src]
id: &str,
model_type: &str,
kernel: Rc<HitKernel>
) -> Result<Hit, HitError>
pub fn new_with_values(
id: &str,
kernel: Rc<HitKernel>,
values: ObjectValues,
model_type: &str
) -> Result<Hit, HitError>
[src]
id: &str,
kernel: Rc<HitKernel>,
values: ObjectValues,
model_type: &str
) -> Result<Hit, HitError>
pub fn contains_key(&self, key: &str) -> bool
[src]
pub fn insert_reference(
&mut self,
id: &str,
target: IndexEntryProperty,
before_id: Option<String>
) -> Result<(), HitError>
[src]
&mut self,
id: &str,
target: IndexEntryProperty,
before_id: Option<String>
) -> Result<(), HitError>
pub fn remove_reference(
&mut self,
id: &str,
parent: IndexEntryProperty
) -> Result<(), HitError>
[src]
&mut self,
id: &str,
parent: IndexEntryProperty
) -> Result<(), HitError>
pub fn get_references(
&self,
id: &str
) -> Result<Vec<IndexEntryProperty>, HitError>
[src]
&self,
id: &str
) -> Result<Vec<IndexEntryProperty>, HitError>
pub fn find_references_recursive(
&self,
id: &str
) -> Result<(HashMap<String, Vec<IndexEntryProperty>>, Vec<String>), HitError>
[src]
&self,
id: &str
) -> Result<(HashMap<String, Vec<IndexEntryProperty>>, Vec<String>), HitError>
pub fn remove_object(&mut self, id: &str) -> Result<Vec<String>, HitError>
[src]
pub fn can_move_object(
&self,
id: &str,
target_id: &str,
target_model: &str,
property: &str
) -> Result<(), HitError>
[src]
&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>
[src]
&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>
[src]
&mut self,
id: Id,
target: IndexEntryProperty,
before_id: Option<String>
) -> Result<Id, HitError>
pub fn get_model(&self, id: &str) -> Option<Rc<Model>>
[src]
pub fn get(&self, id: &str) -> Option<HitEntry>
[src]
pub fn get_value(&self, id: &str, property: &str) -> Option<ObjectValue>
[src]
pub fn set(
&mut self,
id: &str,
property: &str,
value: ObjectValue
) -> Result<(), HitError>
[src]
&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>
[src]
&mut self,
model_type: &str,
id: &str,
values: ObjectValues,
parent: IndexEntryProperty,
before_id: Option<String>
) -> Result<(), HitError>
pub fn get_plugins(&self) -> &Plugins
[src]
pub fn get_main_object_id(&self) -> &Id
[src]
pub fn subscribe_field(
&self,
id: &str,
field: &str,
listener: FieldListenerRef<ObjectValue>
) -> Result<String, HitError>
[src]
&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>
[src]
&self,
id: &str,
field: &str,
listener_id: &str
) -> Result<(), HitError>
pub fn get_parent(&self, id: &str) -> Option<IndexEntryProperty>
[src]
pub fn get_parent_index(&self, id: &str) -> Option<usize>
[src]
pub fn validate_field(
&mut self,
id: &str,
property: &str
) -> Result<(), HitError>
[src]
&mut self,
id: &str,
property: &str
) -> Result<(), HitError>
pub fn get_validation_errors(
&self,
id: &str,
field: &str
) -> Option<&Vec<ValidationError>>
[src]
&self,
id: &str,
field: &str
) -> Option<&Vec<ValidationError>>
pub fn subscribe_field_validation(
&mut self,
id: &str,
field: &str,
listener: FieldListenerRef<Vec<ValidationError>>
)
[src]
&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>
[src]
&mut self,
id: &str,
field: &str,
listener_id: &str
) -> Result<(), HitError>
Auto Trait Implementations
impl !RefUnwindSafe for Hit
impl !RefUnwindSafe for Hit
impl !UnwindSafe for Hit
impl !UnwindSafe for Hit