pub enum FileImportFormat {
Fbx,
Gltf,
Obj,
Ply,
Sldprt,
Step,
Stl,
}
Expand description
The valid types of source file formats.
Variants§
Fbx
Autodesk Filmbox (FBX) format. https://en.wikipedia.org/wiki/FBX
Gltf
glTF 2.0.
Obj
The OBJ file format. https://en.wikipedia.org/wiki/Wavefront_.obj_file It may or may not have an an attached material (mtl // mtllib) within the file, but we interact with it as if it does not.
Ply
The PLY file format. https://en.wikipedia.org/wiki/PLY_(file_format)
Sldprt
SolidWorks part (SLDPRT) format.
Step
The STEP file format. https://en.wikipedia.org/wiki/ISO_10303-21
Stl
The STL file format. https://en.wikipedia.org/wiki/STL_(file_format)
Trait Implementations§
source§impl<'expr> AsExpression<Nullable<Text>> for &'expr FileImportFormat
impl<'expr> AsExpression<Nullable<Text>> for &'expr FileImportFormat
§type Expression = Bound<Nullable<Text>, &'expr FileImportFormat>
type Expression = Bound<Nullable<Text>, &'expr FileImportFormat>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Nullable<Text>> for FileImportFormat
impl AsExpression<Nullable<Text>> for FileImportFormat
§type Expression = Bound<Nullable<Text>, FileImportFormat>
type Expression = Bound<Nullable<Text>, FileImportFormat>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl<'expr> AsExpression<Text> for &'expr FileImportFormat
impl<'expr> AsExpression<Text> for &'expr FileImportFormat
§type Expression = Bound<Text, &'expr FileImportFormat>
type Expression = Bound<Text, &'expr FileImportFormat>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl AsExpression<Text> for FileImportFormat
impl AsExpression<Text> for FileImportFormat
§type Expression = Bound<Text, FileImportFormat>
type Expression = Bound<Text, FileImportFormat>
The expression being returned
source§fn as_expression(self) -> Self::Expression
fn as_expression(self) -> Self::Expression
Perform the conversion
source§impl Clone for FileImportFormat
impl Clone for FileImportFormat
source§fn clone(&self) -> FileImportFormat
fn clone(&self) -> FileImportFormat
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FileImportFormat
impl Debug for FileImportFormat
source§impl<'de> Deserialize<'de> for FileImportFormat
impl<'de> Deserialize<'de> for FileImportFormat
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 FileImportFormat
impl Display for FileImportFormat
source§impl ExternType for FileImportFormat
impl ExternType for FileImportFormat
source§impl From<FileImportFormat> for InputFormat
impl From<FileImportFormat> for InputFormat
source§fn from(import_format: FileImportFormat) -> Self
fn from(import_format: FileImportFormat) -> Self
Converts to this type from the input type.
source§impl From<InputFormat> for FileImportFormat
impl From<InputFormat> for FileImportFormat
source§fn from(input_format: InputFormat) -> Self
fn from(input_format: InputFormat) -> Self
Converts to this type from the input type.
source§impl<DB> FromSql<Text, DB> for FileImportFormat
impl<DB> FromSql<Text, DB> for FileImportFormat
source§impl FromStr for FileImportFormat
impl FromStr for FileImportFormat
source§impl JsonSchema for FileImportFormat
impl JsonSchema for FileImportFormat
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl Ord for FileImportFormat
impl Ord for FileImportFormat
source§fn cmp(&self, other: &FileImportFormat) -> Ordering
fn cmp(&self, other: &FileImportFormat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for FileImportFormat
impl PartialEq for FileImportFormat
source§fn eq(&self, other: &FileImportFormat) -> bool
fn eq(&self, other: &FileImportFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FileImportFormat
impl PartialOrd for FileImportFormat
source§fn partial_cmp(&self, other: &FileImportFormat) -> Option<Ordering>
fn partial_cmp(&self, other: &FileImportFormat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<__ST, __DB> Queryable<__ST, __DB> for FileImportFormat
impl<__ST, __DB> Queryable<__ST, __DB> for FileImportFormat
source§impl Sequence for FileImportFormat
impl Sequence for FileImportFormat
source§impl Serialize for FileImportFormat
impl Serialize for FileImportFormat
impl Copy for FileImportFormat
impl Eq for FileImportFormat
impl StructuralPartialEq for FileImportFormat
Auto Trait Implementations§
impl Freeze for FileImportFormat
impl RefUnwindSafe for FileImportFormat
impl Send for FileImportFormat
impl Sync for FileImportFormat
impl Unpin for FileImportFormat
impl UnwindSafe for FileImportFormat
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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, ST, DB> FromSqlRow<ST, DB> for Twhere
T: Queryable<ST, DB>,
ST: SqlTypeOrSelectable,
DB: Backend,
<T as Queryable<ST, DB>>::Row: FromStaticSqlRow<ST, DB>,
impl<T, ST, DB> FromSqlRow<ST, DB> for Twhere
T: Queryable<ST, DB>,
ST: SqlTypeOrSelectable,
DB: Backend,
<T as Queryable<ST, DB>>::Row: FromStaticSqlRow<ST, DB>,
source§impl<T, ST, DB> FromStaticSqlRow<ST, DB> for T
impl<T, ST, DB> FromStaticSqlRow<ST, DB> for T
source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read moresource§impl<T, ST, DB> StaticallySizedRow<ST, DB> for T
impl<T, ST, DB> StaticallySizedRow<ST, DB> for T
source§const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE
const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE
The number of fields that this type will consume.