Struct edgedb_protocol::model::LocalDatetime
source · pub struct LocalDatetime { /* private fields */ }
Implementations§
source§impl LocalDatetime
impl LocalDatetime
pub const MIN: LocalDatetime = _
pub const MAX: LocalDatetime = _
pub fn from_micros(micros: i64) -> LocalDatetime
👎Deprecated since 0.5.0: use Datetime::try_from_unix_micros(v).into() instead
pub fn to_micros(self) -> i64
👎Deprecated since 0.5.0: use .to_utc().to_unix_micros() instead
pub fn new(date: LocalDate, time: LocalTime) -> LocalDatetime
pub fn date(self) -> LocalDate
pub fn time(self) -> LocalTime
pub fn to_utc(self) -> Datetime
Trait Implementations§
source§impl Clone for LocalDatetime
impl Clone for LocalDatetime
source§fn clone(&self) -> LocalDatetime
fn clone(&self) -> LocalDatetime
Returns a copy 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 LocalDatetime
impl Debug for LocalDatetime
source§impl Display for LocalDatetime
impl Display for LocalDatetime
source§impl From<Datetime> for LocalDatetime
impl From<Datetime> for LocalDatetime
source§fn from(d: Datetime) -> LocalDatetime
fn from(d: Datetime) -> LocalDatetime
Converts to this type from the input type.
source§impl Hash for LocalDatetime
impl Hash for LocalDatetime
source§impl Ord for LocalDatetime
impl Ord for LocalDatetime
source§fn cmp(&self, other: &LocalDatetime) -> Ordering
fn cmp(&self, other: &LocalDatetime) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<LocalDatetime> for LocalDatetime
impl PartialEq<LocalDatetime> for LocalDatetime
source§fn eq(&self, other: &LocalDatetime) -> bool
fn eq(&self, other: &LocalDatetime) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<LocalDatetime> for LocalDatetime
impl PartialOrd<LocalDatetime> for LocalDatetime
source§fn partial_cmp(&self, other: &LocalDatetime) -> Option<Ordering>
fn partial_cmp(&self, other: &LocalDatetime) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl ScalarArg for LocalDatetime
impl ScalarArg for LocalDatetime
impl Copy for LocalDatetime
impl Eq for LocalDatetime
impl StructuralEq for LocalDatetime
impl StructuralPartialEq for LocalDatetime
Auto Trait Implementations§
impl RefUnwindSafe for LocalDatetime
impl Send for LocalDatetime
impl Sync for LocalDatetime
impl Unpin 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