Struct semilattice_database::Collection
source · pub struct Collection { /* private fields */ }Implementations§
source§impl 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(&self, row: u32) -> u128
pub fn uuid_string(&self, row: u32) -> String
pub fn last_updated(&self, row: u32) -> u64
pub fn term_begin(&self, row: u32) -> u64
pub fn term_end(&self, row: u32) -> u64
pub fn field_bytes(&self, row: u32, field_name: &str) -> &[u8] ⓘ
pub fn field_num(&self, row: u32, field_name: &str) -> f64
pub fn update(&mut self, operation: &Operation) -> Result<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§
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