pub struct Model {
pub primary_key: KeyDefinition<()>,
pub secondary_keys: HashSet<KeyDefinition<KeyOptions>>,
}
Expand description
See the documentation crate::Models::define to see how to define a model.
Fields§
§primary_key: KeyDefinition<()>
§secondary_keys: HashSet<KeyDefinition<KeyOptions>>
Implementations§
Source§impl Model
impl Model
pub fn check_secondary_options<F>( &self, secondary_key: &KeyDefinition<KeyOptions>, check: F, ) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnwindSafe for Model
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