pub struct UniqueConstraintDef { /* private fields */ }Implementations§
Source§impl UniqueConstraintDef
impl UniqueConstraintDef
pub fn new(name: impl Into<String>, columns: Vec<String>) -> Self
pub fn with_timing(self, timing: ConstraintTiming) -> Self
pub fn nulls_not_distinct(self) -> Self
pub fn with_nulls_not_distinct(self, nulls_not_distinct: bool) -> Self
pub fn with_sqlite_on_conflict(self, policy: impl Into<String>) -> Self
pub fn with_sqlite_on_conflict_option(self, policy: Option<String>) -> Self
pub fn with_mssql_filegroup(self, filegroup: impl Into<String>) -> Self
pub fn with_mssql_filegroup_option(self, filegroup: Option<String>) -> Self
pub fn with_mssql_clustered(self, clustered: bool) -> Self
pub fn with_mssql_clustered_option(self, clustered: Option<bool>) -> Self
pub fn with_oracle_tablespace(self, tablespace: impl Into<String>) -> Self
pub fn with_oracle_tablespace_option(self, tablespace: Option<String>) -> Self
pub fn with_oracle_compress(self) -> Self
pub fn with_oracle_compress_prefix(self, prefix_length: u32) -> Self
pub fn with_oracle_compress_option( self, compress: Option<OracleIndexCompression>, ) -> Self
pub fn name(&self) -> &str
pub fn columns(&self) -> &[String]
pub fn timing(&self) -> &ConstraintTiming
pub fn is_nulls_not_distinct(&self) -> bool
pub fn sqlite_on_conflict(&self) -> Option<&str>
pub fn mssql_filegroup(&self) -> Option<&str>
pub fn mssql_clustered(&self) -> Option<bool>
pub fn oracle_tablespace(&self) -> Option<&str>
pub fn oracle_compress(&self) -> Option<&OracleIndexCompression>
Trait Implementations§
Source§impl Clone for UniqueConstraintDef
impl Clone for UniqueConstraintDef
Source§impl Debug for UniqueConstraintDef
impl Debug for UniqueConstraintDef
impl Eq for UniqueConstraintDef
Source§impl PartialEq for UniqueConstraintDef
impl PartialEq for UniqueConstraintDef
impl StructuralPartialEq for UniqueConstraintDef
Auto Trait Implementations§
impl Freeze for UniqueConstraintDef
impl RefUnwindSafe for UniqueConstraintDef
impl Send for UniqueConstraintDef
impl Sync for UniqueConstraintDef
impl Unpin for UniqueConstraintDef
impl UnsafeUnpin for UniqueConstraintDef
impl UnwindSafe for UniqueConstraintDef
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