pub type Timestamp = NaiveDateTime;Available on crate feature
chrono and crate feature date and (crate features chrono or jiff) only.Expand description
Rust type for date.
Aliased Type§
pub struct Timestamp { /* private fields */ }Trait Implementations§
Source§impl FromSql for Timestamp
impl FromSql for Timestamp
Source§fn from_text(ty: &Type, raw: Option<&str>) -> Result<Self>
fn from_text(ty: &Type, raw: Option<&str>) -> Result<Self>
Create a new struct from the text representation. Read more
Source§fn from_binary(ty: &Type, raw: Option<&[u8]>) -> Result<Self>
fn from_binary(ty: &Type, raw: Option<&[u8]>) -> Result<Self>
Create a new struct from the binary representation. Read more
Source§fn from_sql(ty: &Type, format: Format, raw: Option<&[u8]>) -> Result<Self>
fn from_sql(ty: &Type, format: Format, raw: Option<&[u8]>) -> Result<Self>
Create a new struct from SQL value.