Struct hit_data::Hit[][src]

pub struct Hit {
    pub kernel: Rc<HitKernel>,
    // some fields omitted
}

Fields

kernel: Rc<HitKernel>

Implementations

impl Hit[src]

pub fn new(
    id: &str,
    model_type: &str,
    kernel: Rc<HitKernel>
) -> Result<Hit, HitError>
[src]

pub fn new_with_values(
    id: &str,
    kernel: Rc<HitKernel>,
    values: ObjectValues,
    model_type: &str
) -> Result<Hit, HitError>
[src]

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]

pub fn remove_reference(
    &mut self,
    id: &str,
    parent: IndexEntryProperty
) -> Result<(), HitError>
[src]

pub fn get_references(
    &self,
    id: &str
) -> Result<Vec<IndexEntryProperty>, HitError>
[src]

pub fn find_references_recursive(
    &self,
    id: &str
) -> Result<(HashMap<String, Vec<IndexEntryProperty>>, Vec<String>), HitError>
[src]

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]

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

pub fn copy_object(
    &mut self,
    id: Id,
    target: IndexEntryProperty,
    before_id: Option<String>
) -> Result<Id, HitError>
[src]

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]

pub fn insert(
    &mut self,
    model_type: &str,
    id: &str,
    values: ObjectValues,
    parent: IndexEntryProperty,
    before_id: Option<String>
) -> Result<(), HitError>
[src]

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]

pub fn unsubscribe_field(
    &self,
    id: &str,
    field: &str,
    listener_id: &str
) -> Result<(), HitError>
[src]

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]

pub fn get_validation_errors(
    &self,
    id: &str,
    field: &str
) -> Option<&Vec<ValidationError>>
[src]

pub fn subscribe_field_validation(
    &mut self,
    id: &str,
    field: &str,
    listener: FieldListenerRef<Vec<ValidationError>>
)
[src]

pub fn unsubscribe_field_validation(
    &mut self,
    id: &str,
    field: &str,
    listener_id: &str
) -> Result<(), HitError>
[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,