pub struct TypedString {
pub data_type: DataType,
pub value: String,
}
Expand description
A constant of form <data_type> 'value'
.
This can represent ANSI SQL DATE
, TIME
, and TIMESTAMP
literals (such as DATE '2020-01-01'
),
as well as constants of other types (a non-standard PostgreSQL extension).
Fields§
§data_type: DataType
§value: String
Trait Implementations§
Source§impl Clone for TypedString
impl Clone for TypedString
Source§fn clone(&self) -> TypedString
fn clone(&self) -> TypedString
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 TypedString
impl Debug for TypedString
Source§impl Display for TypedString
impl Display for TypedString
Source§impl Hash for TypedString
impl Hash for TypedString
Source§impl PartialEq for TypedString
impl PartialEq for TypedString
impl Eq for TypedString
impl StructuralPartialEq for TypedString
Auto Trait Implementations§
impl Freeze for TypedString
impl RefUnwindSafe for TypedString
impl Send for TypedString
impl Sync for TypedString
impl Unpin for TypedString
impl UnwindSafe for TypedString
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