pub struct DateTimeDataType {
pub precision: u8,
pub with_timezone: bool,
}Expand description
Combined date and time for legacy compatibility.
Maps to: DATETIME (SQL Server legacy), TIMESTAMP (PostgreSQL).
Prefer TimestampDataType for new designs.
§Example
use razeri_plugin_contract::data_type::DateTimeDataType;
let dt = DateTimeDataType::new(3, true);
assert_eq!(dt.precision, 3);
assert!(dt.with_timezone);Fields§
§precision: u8Fractional seconds precision (0-9).
with_timezone: boolWhether to include timezone offset.
Implementations§
Trait Implementations§
Source§impl Clone for DateTimeDataType
impl Clone for DateTimeDataType
Source§fn clone(&self) -> DateTimeDataType
fn clone(&self) -> DateTimeDataType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DateTimeDataType
impl Debug for DateTimeDataType
Source§impl Default for DateTimeDataType
impl Default for DateTimeDataType
impl Eq for DateTimeDataType
Source§impl Hash for DateTimeDataType
impl Hash for DateTimeDataType
Source§impl PartialEq for DateTimeDataType
impl PartialEq for DateTimeDataType
impl StructuralPartialEq for DateTimeDataType
Auto Trait Implementations§
impl Freeze for DateTimeDataType
impl RefUnwindSafe for DateTimeDataType
impl Send for DateTimeDataType
impl Sync for DateTimeDataType
impl Unpin for DateTimeDataType
impl UnsafeUnpin for DateTimeDataType
impl UnwindSafe for DateTimeDataType
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