pub struct LocalDateTime { /* private fields */ }Expand description
The instant is worked out when needed, so the time survives a change to the zone’s rules.
Implementations§
Trait Implementations§
Source§impl Cast for LocalDateTime
impl Cast for LocalDateTime
const COLUMNS: &'static [ColumnSpec]
fn encode(&self, out: &mut Vec<SqlValue>)
fn decode(row: &mut dyn ColumnReader) -> Result<Self>
const NULLABLE: bool = false
Source§const SENSITIVE: bool = false
const SENSITIVE: bool = false
A field holding it is never filtered, sorted, listed or searched, as
#[sensitive] ones.Source§const MOVES: Option<fn(&Self) -> Option<&'static Targets>> = None
const MOVES: Option<fn(&Self) -> Option<&'static Targets>> = None
Set for a value moving between listed states; a save of any other value skips the check.
Source§const HOLDS_STATES: bool = _
const HOLDS_STATES: bool = _
Set when a state anywhere in the value is checked on save, as a field’s of several.
fn refuse_unlisted_move( field: &str, stored: &Self, current: &Self, ) -> Result<(), Error>
Source§impl Clone for LocalDateTime
impl Clone for LocalDateTime
Source§impl Debug for LocalDateTime
impl Debug for LocalDateTime
Source§impl<'de> Deserialize<'de> for LocalDateTime
impl<'de> Deserialize<'de> for LocalDateTime
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LocalDateTime
Source§impl Fields for LocalDateTime
impl Fields for LocalDateTime
Source§impl Hash for LocalDateTime
impl Hash for LocalDateTime
Source§impl LogFields for LocalDateTime
Available on crate feature time only.
impl LogFields for LocalDateTime
Available on crate feature
time only.Source§impl PartialEq for LocalDateTime
impl PartialEq for LocalDateTime
Source§impl Present for LocalDateTime
Sorted by its wall-clock time: an instant may not exist for it.
impl Present for LocalDateTime
Sorted by its wall-clock time: an instant may not exist for it.
Source§impl Samples for LocalDateTime
impl Samples for LocalDateTime
Source§impl Serialize for LocalDateTime
impl Serialize for LocalDateTime
Source§impl Show for LocalDateTime
ISO 8601 text, which sorts as it reads: the value model has no zone-less time type.
impl Show for LocalDateTime
ISO 8601 text, which sorts as it reads: the value model has no zone-less time type.
impl StructuralPartialEq for LocalDateTime
Auto Trait Implementations§
impl Freeze for LocalDateTime
impl RefUnwindSafe for LocalDateTime
impl Send for LocalDateTime
impl Sync for LocalDateTime
impl Unpin for LocalDateTime
impl UnsafeUnpin for LocalDateTime
impl UnwindSafe for LocalDateTime
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