pub struct IndexDef { /* private fields */ }Implementations§
Source§impl IndexDef
impl IndexDef
pub fn new(name: impl Into<String>, columns: Vec<String>) -> Self
pub fn unique(self, unique: bool) -> Self
pub fn where_expr(self, where_expr: impl Into<String>) -> Self
pub fn expressions(self, expressions: Vec<String>) -> Self
pub fn include_columns(self, include_columns: Vec<String>) -> Self
pub fn method(self, method: impl Into<String>) -> Self
pub fn postgres_with(self, parameters: Vec<(String, String)>) -> Self
pub fn name(&self) -> &str
pub fn columns(&self) -> &[String]
pub fn expressions_ref(&self) -> &[String]
pub fn is_unique(&self) -> bool
pub fn predicate(&self) -> Option<&str>
pub fn include_columns_ref(&self) -> &[String]
pub fn method_name(&self) -> Option<&str>
pub fn postgres_with_ref(&self) -> &[(String, String)]
Trait Implementations§
impl Eq for IndexDef
impl StructuralPartialEq for IndexDef
Auto Trait Implementations§
impl Freeze for IndexDef
impl RefUnwindSafe for IndexDef
impl Send for IndexDef
impl Sync for IndexDef
impl Unpin for IndexDef
impl UnsafeUnpin for IndexDef
impl UnwindSafe for IndexDef
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