pub enum ConfigSource {
System,
Custom,
}Expand description
Origin of a stored configuration value.
Variants§
System
Value is defined by the product registry.
Custom
Value is user-defined and not backed by a product registry entry.
Implementations§
Source§impl ConfigSource
impl ConfigSource
Sourcepub fn iden_values() -> Vec<DynIden>
pub fn iden_values() -> Vec<DynIden>
Generated by sea-orm-macros
Source§impl ConfigSource
impl ConfigSource
Trait Implementations§
Source§impl ActiveEnum for ConfigSource
impl ActiveEnum for ConfigSource
Source§type ValueVec = Vec<String>
type ValueVec = Vec<String>
This has no purpose. It will be removed in the next major version.
Source§fn to_value(&self) -> <Self as ActiveEnum>::Value
fn to_value(&self) -> <Self as ActiveEnum>::Value
Convert enum variant into the corresponding value.
Source§fn try_from_value(v: &<Self as ActiveEnum>::Value) -> Result<Self, DbErr>
fn try_from_value(v: &<Self as ActiveEnum>::Value) -> Result<Self, DbErr>
Try to convert the corresponding value into enum variant.
§fn into_value(self) -> Self::Value
fn into_value(self) -> Self::Value
Convert an owned enum variant into the corresponding value.
Source§impl Clone for ConfigSource
impl Clone for ConfigSource
Source§fn clone(&self) -> ConfigSource
fn clone(&self) -> ConfigSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for ConfigSource
impl ComposeSchema for ConfigSource
Source§impl Debug for ConfigSource
impl Debug for ConfigSource
Source§impl Default for ConfigSource
impl Default for ConfigSource
Source§fn default() -> ConfigSource
fn default() -> ConfigSource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConfigSource
impl<'de> Deserialize<'de> for ConfigSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ConfigSource
impl Display for ConfigSource
Source§impl From<ConfigSource> for Value
impl From<ConfigSource> for Value
Source§fn from(source: ConfigSource) -> Self
fn from(source: ConfigSource) -> Self
Converts to this type from the input type.
Source§impl Hash for ConfigSource
impl Hash for ConfigSource
Source§impl IntoActiveValue<ConfigSource> for ConfigSource
impl IntoActiveValue<ConfigSource> for ConfigSource
Source§fn into_active_value(self) -> ActiveValue<ConfigSource>
fn into_active_value(self) -> ActiveValue<ConfigSource>
Method to perform the conversion
Source§impl IntoEnumIterator for ConfigSource
impl IntoEnumIterator for ConfigSource
Source§impl PartialEq for ConfigSource
impl PartialEq for ConfigSource
Source§fn eq(&self, other: &ConfigSource) -> bool
fn eq(&self, other: &ConfigSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConfigSource
impl Serialize for ConfigSource
Source§impl ToSchema for ConfigSource
impl ToSchema for ConfigSource
Source§impl TryGetable for ConfigSource
impl TryGetable for ConfigSource
Source§fn try_get_by<I: ColIdx>(res: &QueryResult, idx: I) -> Result<Self, TryGetError>
fn try_get_by<I: ColIdx>(res: &QueryResult, idx: I) -> Result<Self, TryGetError>
Decode the value at the column named or positioned by
index.§fn try_get(res: &QueryResult, pre: &str, col: &str) -> Result<Self, TryGetError>
fn try_get(res: &QueryResult, pre: &str, col: &str) -> Result<Self, TryGetError>
Decode the value at column
{pre}{col} — pre is the prefix used
when nesting partial models or joining tables.§fn try_get_by_index(
res: &QueryResult,
index: usize,
) -> Result<Self, TryGetError>
fn try_get_by_index( res: &QueryResult, index: usize, ) -> Result<Self, TryGetError>
Decode the value at the given positional index in the SELECT list.
Source§impl TryGetableArray for ConfigSource
impl TryGetableArray for ConfigSource
Source§fn try_get_by<I: ColIdx>(
res: &QueryResult,
index: I,
) -> Result<Vec<Self>, TryGetError>
fn try_get_by<I: ColIdx>( res: &QueryResult, index: I, ) -> Result<Vec<Self>, TryGetError>
Just a delegate
Source§impl ValueType for ConfigSource
impl ValueType for ConfigSource
fn try_from(v: Value) -> Result<Self, ValueTypeErr>
fn type_name() -> String
fn array_type() -> ArrayType
fn column_type() -> ColumnType
fn enum_type_name() -> Option<&'static str>
fn unwrap(v: Value) -> Self
fn expect(v: Value, msg: &str) -> Self
fn is_option() -> bool
impl Copy for ConfigSource
impl Eq for ConfigSource
impl NotU8 for ConfigSource
impl StructuralPartialEq for ConfigSource
Auto Trait Implementations§
impl Freeze for ConfigSource
impl RefUnwindSafe for ConfigSource
impl Send for ConfigSource
impl Sync for ConfigSource
impl Unpin for ConfigSource
impl UnsafeUnpin for ConfigSource
impl UnwindSafe for ConfigSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> ExprTrait for Twhere
T: Into<Expr>,
impl<T> ExprTrait for Twhere
T: Into<Expr>,
§fn count_distinct(self) -> Expr
fn count_distinct(self) -> Expr
Express a
COUNT function with the DISTINCT modifier. Read more§fn add<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
fn add<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
Express an arithmetic addition operation. Read more
§fn div<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
fn div<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
Express an arithmetic division operation. Read more
§fn equals<C>(self, col: C) -> Exprwhere
C: IntoColumnRef,
fn equals<C>(self, col: C) -> Exprwhere
C: IntoColumnRef,
Express a equal expression between two table columns,
you will mainly use this to relate identical value between two table columns. Read more
§fn gt<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
fn gt<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
Express a greater than (
>) expression. Read more§fn gte<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
fn gte<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
Express a greater than or equal (
>=) expression. Read more§fn in_subquery(self, sel: SelectStatement) -> Expr
fn in_subquery(self, sel: SelectStatement) -> Expr
Express a
IN sub-query expression. Read more§fn in_tuples<V, I>(self, v: I) -> Exprwhere
V: IntoValueTuple,
I: IntoIterator<Item = V>,
fn in_tuples<V, I>(self, v: I) -> Exprwhere
V: IntoValueTuple,
I: IntoIterator<Item = V>,
Express a
IN sub expression. Read more§fn is_in<V, I>(self, v: I) -> Exprwhere
V: Into<Expr>,
I: IntoIterator<Item = V>,
fn is_in<V, I>(self, v: I) -> Exprwhere
V: Into<Expr>,
I: IntoIterator<Item = V>,
Express a
IN expression. Read more§fn is_not_in<V, I>(self, v: I) -> Exprwhere
V: Into<Expr>,
I: IntoIterator<Item = V>,
fn is_not_in<V, I>(self, v: I) -> Exprwhere
V: Into<Expr>,
I: IntoIterator<Item = V>,
Express a
NOT IN expression. Read more§fn is_not_null(self) -> Expr
fn is_not_null(self) -> Expr
Express a
IS NOT NULL expression. Read more§fn left_shift<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
fn left_shift<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
Express a bitwise left shift. Read more
§fn lte<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
fn lte<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
Express a less than or equal (
<=) expression. Read more§fn modulo<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
fn modulo<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
Express an arithmetic modulo operation. Read more
§fn mul<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
fn mul<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
Express an arithmetic multiplication operation. Read more
§fn not_between<A, B>(self, a: A, b: B) -> Expr
fn not_between<A, B>(self, a: A, b: B) -> Expr
Express a
NOT BETWEEN expression. Read more§fn not_equals<C>(self, col: C) -> Exprwhere
C: IntoColumnRef,
fn not_equals<C>(self, col: C) -> Exprwhere
C: IntoColumnRef,
Express a not equal expression between two table columns,
you will mainly use this to relate identical value between two table columns. Read more
§fn not_in_subquery(self, sel: SelectStatement) -> Expr
fn not_in_subquery(self, sel: SelectStatement) -> Expr
Express a
NOT IN sub-query expression. Read more§fn not_like<L>(self, like: L) -> Exprwhere
L: IntoLikeExpr,
fn not_like<L>(self, like: L) -> Exprwhere
L: IntoLikeExpr,
Express a
NOT LIKE expression. Read more§fn right_shift<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
fn right_shift<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
Express a bitwise right shift. Read more
§fn sub<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
fn sub<R>(self, right: R) -> Exprwhere
R: Into<Expr>,
Express an arithmetic subtraction operation. Read more
§impl<V> FromValueTuple for Vwhere
V: Into<Value> + ValueType,
impl<V> FromValueTuple for Vwhere
V: Into<Value> + ValueType,
fn from_value_tuple<I>(i: I) -> Vwhere
I: IntoValueTuple,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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> IntoValueTuple for Twhere
T: Into<ValueTuple>,
impl<T> IntoValueTuple for Twhere
T: Into<ValueTuple>,
fn into_value_tuple(self) -> ValueTuple
§impl<T> PgExpr for Twhere
T: ExprTrait,
impl<T> PgExpr for Twhere
T: ExprTrait,
§fn concatenate<T>(self, right: T) -> Exprwhere
T: Into<Expr>,
fn concatenate<T>(self, right: T) -> Exprwhere
T: Into<Expr>,
Express an postgres concatenate (
||) expression. Read more§fn matches<T>(self, expr: T) -> Exprwhere
T: Into<Expr>,
fn matches<T>(self, expr: T) -> Exprwhere
T: Into<Expr>,
Express an postgres fulltext search matches (
@@) expression. Read more§fn contains<T>(self, expr: T) -> Exprwhere
T: Into<Expr>,
fn contains<T>(self, expr: T) -> Exprwhere
T: Into<Expr>,
Express an postgres fulltext search contains (
@>) expression. Read more§fn contained<T>(self, expr: T) -> Exprwhere
T: Into<Expr>,
fn contained<T>(self, expr: T) -> Exprwhere
T: Into<Expr>,
Express an postgres fulltext search contained (
<@) expression. Read more§fn get_json_field<T>(self, right: T) -> Exprwhere
T: Into<Expr>,
fn get_json_field<T>(self, right: T) -> Exprwhere
T: Into<Expr>,
Express a postgres retrieves JSON field as JSON value (
->). Read more§fn cast_json_field<T>(self, right: T) -> Exprwhere
T: Into<Expr>,
fn cast_json_field<T>(self, right: T) -> Exprwhere
T: Into<Expr>,
Express a postgres retrieves JSON field and casts it to an appropriate SQL type (
->>). Read more§fn eq_any<V, I>(self, v: I) -> Exprwhere
V: Into<Value> + ValueType,
I: IntoIterator<Item = V>,
fn eq_any<V, I>(self, v: I) -> Exprwhere
V: Into<Value> + ValueType,
I: IntoIterator<Item = V>,
Equivalent to
is_in but bind parameters as array. Read more§fn ne_all<V, I>(self, v: I) -> Exprwhere
V: Into<Value> + ValueType,
I: IntoIterator<Item = V>,
fn ne_all<V, I>(self, v: I) -> Exprwhere
V: Into<Value> + ValueType,
I: IntoIterator<Item = V>,
Equivalent to
is_not_in but bind parameters as array. Read more§impl<V> PrimaryKeyArity for Vwhere
V: TryGetable,
impl<V> PrimaryKeyArity for Vwhere
V: TryGetable,
§impl<T> SqliteExpr for Twhere
T: ExprTrait,
impl<T> SqliteExpr for Twhere
T: ExprTrait,
§fn matches<T>(self, right: T) -> Exprwhere
T: Into<Expr>,
fn matches<T>(self, right: T) -> Exprwhere
T: Into<Expr>,
Express an sqlite
MATCH operator. Read more§fn get_json_field<T>(self, right: T) -> Exprwhere
T: Into<Expr>,
fn get_json_field<T>(self, right: T) -> Exprwhere
T: Into<Expr>,
Express an sqlite retrieves JSON field as JSON value (
->). Read more§fn cast_json_field<T>(self, right: T) -> Exprwhere
T: Into<Expr>,
fn cast_json_field<T>(self, right: T) -> Exprwhere
T: Into<Expr>,
Express an sqlite retrieves JSON field and casts it to an appropriate SQL type (
->>). Read more§impl<T> TryFromU64 for Twhere
T: ActiveEnum,
impl<T> TryFromU64 for Twhere
T: ActiveEnum,
§fn try_from_u64(_: u64) -> Result<T, DbErr>
fn try_from_u64(_: u64) -> Result<T, DbErr>
Build
Self from the raw u64 returned by the driver.§impl<T> TryGetableMany for Twhere
T: TryGetable,
impl<T> TryGetableMany for Twhere
T: TryGetable,
§fn try_get_many(
res: &QueryResult,
pre: &str,
cols: &[String],
) -> Result<T, TryGetError>
fn try_get_many( res: &QueryResult, pre: &str, cols: &[String], ) -> Result<T, TryGetError>
Decode by column name.
pre is the prefix used when nesting (e.g.
from a joined table); cols names each tuple position.§fn try_get_many_by_index(res: &QueryResult) -> Result<T, TryGetError>
fn try_get_many_by_index(res: &QueryResult) -> Result<T, TryGetError>
Decode positionally, in the order columns appear in the SELECT list.