Struct versatile_data::Data
source · [−]pub struct Data { /* private fields */ }
Implementations
sourceimpl Data
impl Data
pub fn new(dir: &str) -> Option<Data>
pub fn insert(
&mut self,
activity: Activity,
term_begin: i64,
term_end: i64
) -> Option<u32>
pub fn update(
&mut self,
row: u32,
activity: Activity,
term_begin: i64,
term_end: i64
) -> Option<u32>
pub fn update_field(&mut self, row: u32, field_name: &str, cont: impl Into<String>)
pub fn delete(&mut self, row: u32)
pub fn serial(&self, row: u32) -> u32
pub fn uuid(&self, row: u32) -> u128
pub fn uuid_str(&self, row: u32) -> String
pub fn activity(&self, row: u32) -> Activity
pub fn term_begin(&self, row: u32) -> i64
pub fn term_end(&self, row: u32) -> i64
pub fn last_updated(&self, row: u32) -> i64
pub fn field_str(&self, row: u32, name: &str) -> &str
pub fn field_num(&self, row: u32, name: &str) -> f64
pub fn load_fields(&mut self)
pub fn serial_index(&self) -> &IdxSized<u32>
pub fn activity_index(&self) -> &IdxSized<u8>
pub fn term_begin_index(&self) -> &IdxSized<i64>
pub fn term_end_index(&self) -> &IdxSized<i64>
pub fn last_updated_index(&self) -> &IdxSized<i64>
pub fn field(&self, name: &str) -> Option<&Field>
pub fn all(&self) -> RowSet
pub fn search_all(&self) -> SearchResult<'_>
pub fn search(&self, condition: &Search) -> SearchResult<'_>
pub fn search_default(&self) -> SearchResult<'_>
Auto Trait Implementations
impl RefUnwindSafe for Data
impl !Send for Data
impl !Sync for Data
impl Unpin for Data
impl UnwindSafe for Data
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more