pub struct LabelStore { /* private fields */ }Implementations§
Source§impl LabelStore
impl LabelStore
pub fn tag( &self, table_name: &str, record_id: &str, label: &str, tagged_by: Option<&str>, ) -> Result<()>
pub fn untag( &self, table_name: &str, record_id: &str, label: &str, ) -> Result<()>
pub fn get_labels( &self, table_name: &str, record_id: &str, ) -> Result<Vec<DataLabel>>
pub fn find_by_label( &self, label: &str, limit: Option<usize>, ) -> Result<Vec<DataLabel>>
pub fn has_label( &self, table_name: &str, record_id: &str, label: &str, ) -> Result<bool>
pub fn clear_record(&self, table_name: &str, record_id: &str) -> Result<()>
Auto Trait Implementations§
impl Freeze for LabelStore
impl RefUnwindSafe for LabelStore
impl Send for LabelStore
impl Sync for LabelStore
impl Unpin for LabelStore
impl UnsafeUnpin for LabelStore
impl UnwindSafe for LabelStore
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