Enum parser_database::ScalarType
source · pub enum ScalarType {
Int,
BigInt,
Float,
Boolean,
String,
DateTime,
Json,
Bytes,
Decimal,
}
Expand description
Prisma’s builtin scalar types.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for ScalarType
impl Clone for ScalarType
source§fn clone(&self) -> ScalarType
fn clone(&self) -> ScalarType
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 ScalarType
impl Debug for ScalarType
source§impl Hash for ScalarType
impl Hash for ScalarType
source§impl PartialEq for ScalarType
impl PartialEq for ScalarType
source§fn eq(&self, other: &ScalarType) -> bool
fn eq(&self, other: &ScalarType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ScalarType
impl Eq for ScalarType
impl StructuralEq for ScalarType
impl StructuralPartialEq for ScalarType
Auto Trait Implementations§
impl RefUnwindSafe for ScalarType
impl Send for ScalarType
impl Sync for ScalarType
impl Unpin for ScalarType
impl UnwindSafe for ScalarType
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> CallHasher for Twhere
T: Hash + ?Sized,
impl<T> CallHasher for Twhere T: Hash + ?Sized,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.