pub struct Key { /* private fields */ }Implementations§
Source§impl Key
impl Key
pub fn new(key_type: KeyType, columns: Vec<KeyColumn>) -> Self
pub fn new_full<S: Into<String>>( key_type: KeyType, columns: Vec<KeyColumn>, cluster: bool, compress: bool, unique: bool, include: Option<S>, ) -> Self
pub fn key_type(&self) -> KeyType
pub fn columns(&self) -> &Vec<KeyColumn>
pub fn is_cluster(&self) -> bool
pub fn is_compress(&self) -> bool
pub fn is_unique(&self) -> bool
pub fn include(&self) -> Option<&str>
pub fn is_index(&self) -> bool
pub fn contains_column(&self, column_name: &str) -> bool
pub fn columns_as_string(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnsafeUnpin for Key
impl UnwindSafe for Key
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