Struct semilattice_database::Collection
source · [−]pub struct Collection { /* private fields */ }Implementations
sourceimpl Collection
impl Collection
pub fn new(data: Data, id: i32, name: impl Into<String>) -> Self
pub fn id(&self) -> i32
pub fn name(&self) -> &str
pub fn activity(&self, row: u32) -> Activity
pub fn serial(&self, row: u32) -> u32
pub fn uuid_str(&self, row: u32) -> String
pub fn last_updated(&self, row: u32) -> i64
pub fn term_begin(&self, row: u32) -> i64
pub fn term_end(&self, row: u32) -> i64
pub fn field_str(&self, row: u32, field_name: &str) -> &str
pub fn field_num(&self, row: u32, field_name: &str) -> f64
pub fn create_row(
&mut self,
activity: &Activity,
term_begin: &Term,
term_end: &Term,
fields: &Vec<KeyValue>
) -> u32
pub fn update_row(
&mut self,
collection_row: u32,
activity: &Activity,
term_begin: &Term,
term_end: &Term,
fields: &Vec<KeyValue>
)
pub fn update(&mut self, operation: &Operation) -> u32
Auto Trait Implementations
impl RefUnwindSafe for Collection
impl Send for Collection
impl Sync for Collection
impl Unpin for Collection
impl UnwindSafe for Collection
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