pub struct SqlDateTime {
pub dt: OffsetDateTime,
pub tz_abbr: Option<Cow<'static, str>>,
}Expand description
用于对齐 go-sqlbuilder time.Time 的插值行为(含可选时区缩写)。
Fields§
§dt: OffsetDateTime§tz_abbr: Option<Cow<'static, str>>Implementations§
Source§impl SqlDateTime
impl SqlDateTime
pub fn new(dt: OffsetDateTime) -> Self
pub fn with_tz_abbr(self, abbr: impl Into<Cow<'static, str>>) -> Self
Trait Implementations§
Source§impl Clone for SqlDateTime
impl Clone for SqlDateTime
Source§fn clone(&self) -> SqlDateTime
fn clone(&self) -> SqlDateTime
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 SqlDateTime
impl Debug for SqlDateTime
Source§impl PartialEq for SqlDateTime
impl PartialEq for SqlDateTime
impl StructuralPartialEq for SqlDateTime
Auto Trait Implementations§
impl Freeze for SqlDateTime
impl RefUnwindSafe for SqlDateTime
impl Send for SqlDateTime
impl Sync for SqlDateTime
impl Unpin for SqlDateTime
impl UnwindSafe for SqlDateTime
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