pub enum ScalarType {
}Expand description
Scalar type enumeration.
Variants§
String
UTF-8 string type.
Boolean
Boolean type (true/false).
Int
32-bit integer.
BigInt
64-bit integer.
Float
64-bit floating point.
Decimal
Fixed-precision decimal number.
DateTime
Date and time.
Bytes
Binary data.
Json
JSON value.
Uuid
UUID value.
Jsonb
JSONB value (PostgreSQL only).
Xml
XML value (PostgreSQL only).
Char
Fixed-length character type.
VarChar
Variable-length character type.
Implementations§
Source§impl ScalarType
impl ScalarType
Sourcepub fn supported_by(self, provider: DatabaseProvider) -> bool
pub fn supported_by(self, provider: DatabaseProvider) -> bool
Returns true when this scalar type is supported by the given database provider.
Sourcepub fn supported_providers(self) -> &'static str
pub fn supported_providers(self) -> &'static str
Human-readable list of supported providers (for diagnostics).
Trait Implementations§
Source§impl Clone for ScalarType
impl Clone for ScalarType
Source§fn clone(&self) -> ScalarType
fn clone(&self) -> ScalarType
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 ScalarType
impl Debug for ScalarType
Source§impl PartialEq for ScalarType
impl PartialEq for ScalarType
impl Copy for ScalarType
impl Eq for ScalarType
impl StructuralPartialEq for ScalarType
Auto Trait Implementations§
impl Freeze for ScalarType
impl RefUnwindSafe for ScalarType
impl Send for ScalarType
impl Sync for ScalarType
impl Unpin for ScalarType
impl UnsafeUnpin 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