pub enum FileCategory {
Image,
Video,
Audio,
Document,
Spreadsheet,
Presentation,
Archive,
Code,
Other,
}Expand description
High-level file category inferred from extension and MIME type.
Variants§
Image
Image files.
Video
Video files.
Audio
Audio files.
Document
Document and plain text files.
Spreadsheet
Spreadsheet files.
Presentation
Presentation files.
Archive
Archive and compressed files.
Code
Source code and structured text files.
Other
Files that do not match a known category.
Implementations§
Source§impl FileCategory
impl FileCategory
Sourcepub fn iden_values() -> Vec<DynIden>
pub fn iden_values() -> Vec<DynIden>
Generated by sea-orm-macros
Trait Implementations§
Source§impl ActiveEnum for FileCategory
impl ActiveEnum for FileCategory
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 FileCategory
impl Clone for FileCategory
Source§fn clone(&self) -> FileCategory
fn clone(&self) -> FileCategory
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 FileCategory
impl ComposeSchema for FileCategory
Source§impl Debug for FileCategory
impl Debug for FileCategory
Source§impl<'de> Deserialize<'de> for FileCategory
impl<'de> Deserialize<'de> for FileCategory
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 From<FileCategory> for Value
impl From<FileCategory> for Value
Source§fn from(source: FileCategory) -> Self
fn from(source: FileCategory) -> Self
Converts to this type from the input type.
Source§impl FromStr for FileCategory
impl FromStr for FileCategory
Source§impl IntoActiveValue<FileCategory> for FileCategory
impl IntoActiveValue<FileCategory> for FileCategory
Source§fn into_active_value(self) -> ActiveValue<FileCategory>
fn into_active_value(self) -> ActiveValue<FileCategory>
Method to perform the conversion
Source§impl IntoEnumIterator for FileCategory
impl IntoEnumIterator for FileCategory
type Iterator = FileCategoryIter
fn iter() -> FileCategoryIter ⓘ
Source§impl PartialEq for FileCategory
impl PartialEq for FileCategory
Source§fn eq(&self, other: &FileCategory) -> bool
fn eq(&self, other: &FileCategory) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FileCategory
impl Serialize for FileCategory
Source§impl ToSchema for FileCategory
impl ToSchema for FileCategory
Source§impl TryGetable for FileCategory
impl TryGetable for FileCategory
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 FileCategory
impl TryGetableArray for FileCategory
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 FileCategory
impl ValueType for FileCategory
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 FileCategory
impl Eq for FileCategory
impl NotU8 for FileCategory
impl StructuralPartialEq for FileCategory
Auto Trait Implementations§
impl Freeze for FileCategory
impl RefUnwindSafe for FileCategory
impl Send for FileCategory
impl Sync for FileCategory
impl Unpin for FileCategory
impl UnsafeUnpin for FileCategory
impl UnwindSafe for FileCategory
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.