Lines Matching defs:NaiveDateTime
62 pub struct NaiveDateTime { struct
67 impl NaiveDateTime { argument
85 pub fn new(date: NaiveDate, time: NaiveTime) -> NaiveDateTime { in new()
115 pub fn from_timestamp(secs: i64, nsecs: u32) -> NaiveDateTime { in from_timestamp()
146 pub fn from_timestamp_opt(secs: i64, nsecs: u32) -> Option<NaiveDateTime> { in from_timestamp_opt()
220 pub fn parse_from_str(s: &str, fmt: &str) -> ParseResult<NaiveDateTime> { in parse_from_str()
489 pub fn checked_add_signed(self, rhs: OldDuration) -> Option<NaiveDateTime> { in checked_add_signed()
568 pub fn checked_sub_signed(self, rhs: OldDuration) -> Option<NaiveDateTime> { in checked_sub_signed()
702 impl Datelike for NaiveDateTime { implementation
873 fn with_year(&self, year: i32) -> Option<NaiveDateTime> { in with_year()
895 fn with_month(&self, month: u32) -> Option<NaiveDateTime> { in with_month()
917 fn with_month0(&self, month0: u32) -> Option<NaiveDateTime> { in with_month0()
938 fn with_day(&self, day: u32) -> Option<NaiveDateTime> { in with_day()
959 fn with_day0(&self, day0: u32) -> Option<NaiveDateTime> { in with_day0()
987 fn with_ordinal(&self, ordinal: u32) -> Option<NaiveDateTime> { in with_ordinal()
1015 fn with_ordinal0(&self, ordinal0: u32) -> Option<NaiveDateTime> { in with_ordinal0()
1020 impl Timelike for NaiveDateTime { implementation
1110 fn with_hour(&self, hour: u32) -> Option<NaiveDateTime> { in with_hour()
1132 fn with_minute(&self, min: u32) -> Option<NaiveDateTime> { in with_minute()
1156 fn with_second(&self, sec: u32) -> Option<NaiveDateTime> { in with_second()
1183 fn with_nanosecond(&self, nano: u32) -> Option<NaiveDateTime> { in with_nanosecond()
1192 impl hash::Hash for NaiveDateTime { implementation
1252 impl Add<OldDuration> for NaiveDateTime { implementation
1256 fn add(self, rhs: OldDuration) -> NaiveDateTime { in add()
1261 impl AddAssign<OldDuration> for NaiveDateTime { implementation
1320 impl Sub<OldDuration> for NaiveDateTime { implementation
1324 fn sub(self, rhs: OldDuration) -> NaiveDateTime { in sub()
1329 impl SubAssign<OldDuration> for NaiveDateTime { implementation
1380 impl Sub<NaiveDateTime> for NaiveDateTime { implementation
1416 impl fmt::Debug for NaiveDateTime { implementation
1447 impl fmt::Display for NaiveDateTime { implementation
1469 impl str::FromStr for NaiveDateTime { implementation
1472 fn from_str(s: &str) -> ParseResult<NaiveDateTime> { in from_str()
1537 F: Fn(&str) -> Result<NaiveDateTime, E>, in test_decodable_json()
1622 impl Encodable for NaiveDateTime { implementation
1628 impl Decodable for NaiveDateTime { implementation
1629 fn decode<D: Decoder>(d: &mut D) -> Result<NaiveDateTime, D::Error> { in decode()
1643 impl From<TsSeconds> for NaiveDateTime { implementation
1646 fn from(obj: TsSeconds) -> NaiveDateTime { in from()
1702 impl ser::Serialize for NaiveDateTime { implementation
1730 fn visit_str<E>(self, value: &str) -> Result<NaiveDateTime, E> in visit_str()
1738 impl<'de> de::Deserialize<'de> for NaiveDateTime { implementation
1822 pub fn serialize<S>(dt: &NaiveDateTime, serializer: S) -> Result<S::Ok, S::Error> in serialize()
1859 pub fn deserialize<'de, D>(d: D) -> Result<NaiveDateTime, D::Error> in deserialize()
1875 fn visit_i64<E>(self, value: i64) -> Result<NaiveDateTime, E> in visit_i64()
1886 fn visit_u64<E>(self, value: u64) -> Result<NaiveDateTime, E> in visit_u64()
1974 pub fn serialize<S>(dt: &NaiveDateTime, serializer: S) -> Result<S::Ok, S::Error> in serialize()
2011 pub fn deserialize<'de, D>(d: D) -> Result<NaiveDateTime, D::Error> in deserialize()
2027 fn visit_i64<E>(self, value: i64) -> Result<NaiveDateTime, E> in visit_i64()
2035 fn visit_u64<E>(self, value: u64) -> Result<NaiveDateTime, E> in visit_u64()
2123 pub fn serialize<S>(dt: &NaiveDateTime, serializer: S) -> Result<S::Ok, S::Error> in serialize()
2160 pub fn deserialize<'de, D>(d: D) -> Result<NaiveDateTime, D::Error> in deserialize()
2176 fn visit_i64<E>(self, value: i64) -> Result<NaiveDateTime, E> in visit_i64()
2184 fn visit_u64<E>(self, value: u64) -> Result<NaiveDateTime, E> in visit_u64()