Struct br_db::Params

source ·
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

source

pub fn default(mode: &str) -> Self

source

pub fn where_sql(&mut self) -> String

source

pub fn page_limit_sql(&mut self) -> String

source

pub fn fields(&mut self) -> String

source

pub fn top(&mut self) -> String

source

pub fn top2(&mut self) -> String

source

pub fn table(&mut self) -> String

source

pub fn join(&mut self) -> String

source

pub fn join_inner(&mut self) -> String

source

pub fn order(&mut self) -> String

source

pub fn group(&mut self) -> String

source

pub fn distinct(&self) -> String

source

pub fn select_sql(&mut self) -> String

Trait Implementations§

source§

impl Clone for Params

source§

fn clone(&self) -> Params

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Params

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.