pub enum ConfigVisibility {
Private,
Public,
Authenticated,
}Expand description
Consumer visibility for a stored configuration value.
Variants§
Private
Only backend code and privileged APIs may see the value.
Public
Anonymous clients may see the value.
Authenticated
Authenticated clients may see the value.
Implementations§
Source§impl ConfigVisibility
impl ConfigVisibility
Sourcepub fn iden_values() -> Vec<DynIden>
pub fn iden_values() -> Vec<DynIden>
Generated by sea-orm-macros
Source§impl ConfigVisibility
impl ConfigVisibility
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Parses a canonical snake_case storage name.
Sourcepub const fn visible_to_public(self) -> bool
pub const fn visible_to_public(self) -> bool
Returns whether anonymous clients may see this value.
Sourcepub const fn visible_to_authenticated(self) -> bool
pub const fn visible_to_authenticated(self) -> bool
Returns whether authenticated clients may see this value.
Trait Implementations§
Source§impl ActiveEnum for ConfigVisibility
impl ActiveEnum for ConfigVisibility
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 ConfigVisibility
impl Clone for ConfigVisibility
Source§fn clone(&self) -> ConfigVisibility
fn clone(&self) -> ConfigVisibility
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 ConfigVisibility
impl ComposeSchema for ConfigVisibility
Source§impl Debug for ConfigVisibility
impl Debug for ConfigVisibility
Source§impl Default for ConfigVisibility
impl Default for ConfigVisibility
Source§fn default() -> ConfigVisibility
fn default() -> ConfigVisibility
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConfigVisibility
impl<'de> Deserialize<'de> for ConfigVisibility
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 ConfigVisibility
impl Display for ConfigVisibility
Source§impl From<ConfigVisibility> for Value
impl From<ConfigVisibility> for Value
Source§fn from(source: ConfigVisibility) -> Self
fn from(source: ConfigVisibility) -> Self
Converts to this type from the input type.
Source§impl Hash for ConfigVisibility
impl Hash for ConfigVisibility
Source§impl IntoActiveValue<ConfigVisibility> for ConfigVisibility
impl IntoActiveValue<ConfigVisibility> for ConfigVisibility
Source§fn into_active_value(self) -> ActiveValue<ConfigVisibility>
fn into_active_value(self) -> ActiveValue<ConfigVisibility>
Method to perform the conversion
Source§impl IntoEnumIterator for ConfigVisibility
impl IntoEnumIterator for ConfigVisibility
Source§impl PartialEq for ConfigVisibility
impl PartialEq for ConfigVisibility
Source§fn eq(&self, other: &ConfigVisibility) -> bool
fn eq(&self, other: &ConfigVisibility) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ConfigVisibility
impl Serialize for ConfigVisibility
Source§impl ToSchema for ConfigVisibility
impl ToSchema for ConfigVisibility
Source§impl TryGetable for ConfigVisibility
impl TryGetable for ConfigVisibility
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 ConfigVisibility
impl TryGetableArray for ConfigVisibility
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 ConfigVisibility
impl ValueType for ConfigVisibility
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 ConfigVisibility
impl Eq for ConfigVisibility
impl NotU8 for ConfigVisibility
impl StructuralPartialEq for ConfigVisibility
Auto Trait Implementations§
impl Freeze for ConfigVisibility
impl RefUnwindSafe for ConfigVisibility
impl Send for ConfigVisibility
impl Sync for ConfigVisibility
impl Unpin for ConfigVisibility
impl UnsafeUnpin for ConfigVisibility
impl UnwindSafe for ConfigVisibility
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.