Struct garage_model::bucket_alias_table::BucketAliasTable
source · pub struct BucketAliasTable;
Trait Implementations§
source§impl TableSchema for BucketAliasTable
impl TableSchema for BucketAliasTable
source§const TABLE_NAME: &'static str = "bucket_alias"
const TABLE_NAME: &'static str = "bucket_alias"
The name of the table in the database
§type E = BucketAlias
type E = BucketAlias
They type for an entry in that table
§type Filter = DeletedFilter
type Filter = DeletedFilter
The type for a filter that can be applied to select entries
(e.g. filter out deleted entries)
fn matches_filter(entry: &Self::E, filter: &Self::Filter) -> bool
source§fn updated(
&self,
_tx: &mut Transaction<'_>,
_old: Option<&Self::E>,
_new: Option<&Self::E>
) -> Result<(), TxOpError>
fn updated( &self, _tx: &mut Transaction<'_>, _old: Option<&Self::E>, _new: Option<&Self::E> ) -> Result<(), TxOpError>
Actions triggered by data changing in a table. If such actions
include updates to the local database that should be applied
atomically with the item update itself, a db transaction is
provided on which these changes should be done.
This function can return a DB error but that’s all.
Auto Trait Implementations§
impl Freeze for BucketAliasTable
impl RefUnwindSafe for BucketAliasTable
impl Send for BucketAliasTable
impl Sync for BucketAliasTable
impl Unpin for BucketAliasTable
impl UnwindSafe for BucketAliasTable
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