pub struct TableHandle {
pub version: VersionHandle,
pub id: String,
}Fields§
§version: VersionHandle§id: StringImplementations§
Source§impl TableHandle
impl TableHandle
pub fn to_ref(&self) -> TableRef
pub fn renamed_from(self, old_name: &str) -> TableHandle
pub fn field(&self, id: &str, type_: FieldType) -> FieldHandle
pub fn index(&self, id: &str, fields: &[&FieldHandle]) -> IndexHandle
pub fn unique_index(&self, id: &str, fields: &[&FieldHandle]) -> IndexHandle
pub fn primary_key(&self, id: &str, fields: &[&FieldHandle]) -> ConstraintHandle
pub fn foreign_key( &self, id: &str, fields: &[(&FieldHandle, &FieldHandle)], ) -> ConstraintHandle
Trait Implementations§
Source§impl Clone for TableHandle
impl Clone for TableHandle
Source§fn clone(&self) -> TableHandle
fn clone(&self) -> TableHandle
Returns a duplicate 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 TableHandle
impl !RefUnwindSafe for TableHandle
impl !Send for TableHandle
impl !Sync for TableHandle
impl Unpin for TableHandle
impl UnsafeUnpin for TableHandle
impl !UnwindSafe for TableHandle
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