pub struct SQLIndexBuilder {
pub name: String,
pub table: String,
pub columns: Vec<String>,
pub unique: bool,
pub if_not_exists: bool,
pub where_clause: Option<String>,
}Fields§
§name: String§table: String§columns: Vec<String>§unique: bool§if_not_exists: bool§where_clause: Option<String>Implementations§
Source§impl SQLIndexBuilder
impl SQLIndexBuilder
pub fn new(name: impl Into<String>, table: impl Into<String>) -> Self
pub fn on_column(self, col: impl Into<String>) -> Self
pub fn unique(self) -> Self
pub fn if_not_exists(self) -> Self
pub fn where_cond(self, cond: impl Into<String>) -> Self
pub fn build(&self) -> String
Trait Implementations§
Source§impl Clone for SQLIndexBuilder
impl Clone for SQLIndexBuilder
Source§fn clone(&self) -> SQLIndexBuilder
fn clone(&self) -> SQLIndexBuilder
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 SQLIndexBuilder
impl RefUnwindSafe for SQLIndexBuilder
impl Send for SQLIndexBuilder
impl Sync for SQLIndexBuilder
impl Unpin for SQLIndexBuilder
impl UnsafeUnpin for SQLIndexBuilder
impl UnwindSafe for SQLIndexBuilder
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