pub struct Params {Show 20 fields
pub mode: String,
pub autoinc: bool,
pub table: String,
pub where_and: Vec<String>,
pub where_or: Vec<String>,
pub where_column: String,
pub inc_dec: JsonValue,
pub page: i32,
pub limit: i32,
pub fields: JsonValue,
pub top: String,
pub top2: String,
pub order: JsonValue,
pub group: JsonValue,
pub distinct: bool,
pub json: JsonValue,
pub sql: bool,
pub join: Vec<String>,
pub join_inner: Vec<String>,
pub join_table: String,
}
Fields§
§mode: String
§autoinc: bool
§table: String
§where_and: Vec<String>
§where_or: Vec<String>
§where_column: String
§inc_dec: JsonValue
§page: i32
§limit: i32
§fields: JsonValue
§top: String
§top2: String
§order: JsonValue
§group: JsonValue
§distinct: bool
§json: JsonValue
§sql: bool
§join: Vec<String>
§join_inner: Vec<String>
§join_table: String
Implementations§
source§impl Params
impl Params
pub fn default(mode: &str) -> Self
pub fn where_sql(&mut self) -> String
pub fn page_limit_sql(&mut self) -> String
pub fn fields(&mut self) -> String
pub fn top(&mut self) -> String
pub fn top2(&mut self) -> String
pub fn table(&mut self) -> String
pub fn join(&mut self) -> String
pub fn join_inner(&mut self) -> String
pub fn order(&mut self) -> String
pub fn group(&mut self) -> String
pub fn distinct(&self) -> String
pub fn select_sql(&mut self) -> String
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Params
impl Send for Params
impl Sync for Params
impl Unpin for Params
impl UnwindSafe for Params
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