pub struct DatabaseModel {
pub primary_key: DatabaseKeyDefinition<()>,
pub secondary_keys: HashSet<DatabaseKeyDefinition<DatabaseSecondaryKeyOptions>>,
}
Fields§
§primary_key: DatabaseKeyDefinition<()>
§secondary_keys: HashSet<DatabaseKeyDefinition<DatabaseSecondaryKeyOptions>>
Implementations§
Source§impl DatabaseModel
impl DatabaseModel
pub fn check_secondary_options<F>( &self, secondary_key: &DatabaseKeyDefinition<DatabaseSecondaryKeyOptions>, check: F, ) -> Result<()>
Trait Implementations§
Source§impl Clone for DatabaseModel
impl Clone for DatabaseModel
Source§fn clone(&self) -> DatabaseModel
fn clone(&self) -> DatabaseModel
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for DatabaseModel
impl RefUnwindSafe for DatabaseModel
impl Send for DatabaseModel
impl Sync for DatabaseModel
impl Unpin for DatabaseModel
impl UnwindSafe for DatabaseModel
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