Struct garage_model::bucket_alias_table::BucketAliasTable
source · pub struct BucketAliasTable;
Trait Implementations
sourceimpl TableSchema for BucketAliasTable
impl TableSchema for BucketAliasTable
sourceconst 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) Read more
fn matches_filter(entry: &Self::E, filter: &Self::Filter) -> bool
sourcefn try_migrate(_bytes: &[u8]) -> Option<Self::E>
fn try_migrate(_bytes: &[u8]) -> Option<Self::E>
Try migrating an entry from an older version
sourcefn 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. Read more
Auto Trait Implementations
impl RefUnwindSafe for BucketAliasTable
impl Send for BucketAliasTable
impl Sync for BucketAliasTable
impl Unpin for BucketAliasTable
impl UnwindSafe for BucketAliasTable
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