Column

Struct Column 

Source
pub struct Column { /* private fields */ }

Implementations§

Source§

impl Column

Source

pub fn def(&self) -> ColumnDef

Source

pub fn column_name(&self) -> &str

Source

pub fn enum_type_name(&self) -> Option<&str>

Source

pub fn entity_name(&self) -> DynIden

Source

pub fn as_column_ref(&self) -> (DynIden, DynIden)

Source

pub fn eq<V>(&self, v: V) -> Expr
where V: Into<Value>,

Source

pub fn ne<V>(&self, v: V) -> Expr
where V: Into<Value>,

Source

pub fn gt<V>(&self, v: V) -> Expr
where V: Into<Value>,

Source

pub fn gte<V>(&self, v: V) -> Expr
where V: Into<Value>,

Source

pub fn lt<V>(&self, v: V) -> Expr
where V: Into<Value>,

Source

pub fn lte<V>(&self, v: V) -> Expr
where V: Into<Value>,

Source

pub fn between<V>(&self, a: V, b: V) -> SimpleExpr
where V: Into<Value>,

Source

pub fn not_between<V>(&self, a: V, b: V) -> SimpleExpr
where V: Into<Value>,

Source

pub fn like<T>(&self, s: T) -> SimpleExpr
where T: IntoLikeExpr,

Source

pub fn not_like<T>(&self, s: T) -> SimpleExpr
where T: IntoLikeExpr,

Source

pub fn starts_with<T>(&self, s: T) -> SimpleExpr
where T: Into<String>,

Source

pub fn ends_with<T>(&self, s: T) -> SimpleExpr
where T: Into<String>,

Source

pub fn contains<T>(&self, s: T) -> SimpleExpr
where T: Into<String>,

Source

pub fn max(&self) -> Expr

See also SeaQuery’s method with same name.

Source

pub fn min(&self) -> Expr

See also SeaQuery’s method with same name.

Source

pub fn sum(&self) -> Expr

See also SeaQuery’s method with same name.

Source

pub fn count(&self) -> Expr

See also SeaQuery’s method with same name.

Source

pub fn is_null(&self) -> Expr

See also SeaQuery’s method with same name.

Source

pub fn is_not_null(&self) -> Expr

See also SeaQuery’s method with same name.

Source

pub fn if_null<V>(&self, v: V) -> SimpleExpr
where V: Into<Value>,

Source

pub fn is_in<V, I>(&self, v: I) -> Expr
where V: Into<Value>, I: IntoIterator<Item = V>,

Source

pub fn is_not_in<V, I>(&self, v: I) -> Expr
where V: Into<Value>, I: IntoIterator<Item = V>,

Source

pub fn in_subquery(&self, s: SelectStatement) -> Expr

Source

pub fn not_in_subquery(&self, s: SelectStatement) -> Expr

Source

pub fn into_expr(self) -> Expr

Source

pub fn into_returning_expr(self, db_backend: DbBackend) -> Expr

Source

pub fn select_as(&self, expr: Expr) -> SimpleExpr

Source

pub fn save_as(&self, val: Expr) -> SimpleExpr

Trait Implementations§

Source§

impl Debug for Column

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Column

§

impl RefUnwindSafe for Column

§

impl Send for Column

§

impl Sync for Column

§

impl Unpin for Column

§

impl UnwindSafe for Column

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
§

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

§

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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.
§

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

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more