pub struct Duration {
pub months: i64,
pub days: i64,
pub seconds: i64,
pub nanos: i32,
}Expand description
A Cypher duration — months, days, seconds, nanoseconds. Matches
the Bolt 4.4 Duration struct (tag 0x45) field-for-field so no
conversion is needed at the wire boundary. Stored as four
separate components because the calendar units (months, days)
can’t be reduced to seconds without knowing a reference date,
while the exact units (seconds, nanos) can.
Fields§
§months: i64§days: i64§seconds: i64§nanos: i32Trait Implementations§
Source§impl<'de> Deserialize<'de> for Duration
impl<'de> Deserialize<'de> for Duration
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Duration
impl Eq for Duration
impl StructuralPartialEq for Duration
Auto Trait Implementations§
impl Freeze for Duration
impl RefUnwindSafe for Duration
impl Send for Duration
impl Sync for Duration
impl Unpin for Duration
impl UnsafeUnpin for Duration
impl UnwindSafe for Duration
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