pub enum VariantFieldType {
Scalar(String),
Uuid,
DateTime,
EntityId,
EnumRef(String),
Option(Box<VariantFieldType>),
Vec(Box<VariantFieldType>),
}Variants§
Scalar(String)
A known Rust scalar type, emitted as-is (e.g. "i64", "String", "bool").
Uuid
Shorthand for uuid::Uuid.
DateTime
Shorthand for chrono::DateTime<chrono::Utc>.
EntityId
The EntityId type (alias for u64).
EnumRef(String)
A PascalCase enum name — emitted as-is in generated code.
Option(Box<VariantFieldType>)
Option<T>
Vec(Box<VariantFieldType>)
Vec<T>
Trait Implementations§
Source§impl Clone for VariantFieldType
impl Clone for VariantFieldType
Source§fn clone(&self) -> VariantFieldType
fn clone(&self) -> VariantFieldType
Returns a duplicate 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 VariantFieldType
impl Debug for VariantFieldType
Source§impl PartialEq for VariantFieldType
impl PartialEq for VariantFieldType
impl StructuralPartialEq for VariantFieldType
Auto Trait Implementations§
impl Freeze for VariantFieldType
impl RefUnwindSafe for VariantFieldType
impl Send for VariantFieldType
impl Sync for VariantFieldType
impl Unpin for VariantFieldType
impl UnsafeUnpin for VariantFieldType
impl UnwindSafe for VariantFieldType
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