Skip to content

Commit eb3fe70

Browse files
committed
init
1 parent 38f6444 commit eb3fe70

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/value_converter.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use chrono::{self, DateTime, FixedOffset, NaiveDate, NaiveDateTime, NaiveTime};
22
use serde_json::{json, Map, Value};
3-
use std::fmt::Debug;
3+
use std::{fmt::Debug, net::IpAddr};
44
use uuid::Uuid;
55

66
use bytes::{BufMut, BytesMut};
@@ -45,6 +45,7 @@ pub enum PythonDTO {
4545
PyTime(NaiveTime),
4646
PyDateTime(NaiveDateTime),
4747
PyDateTimeTz(DateTime<FixedOffset>),
48+
PyIpAddress(IpAddr),
4849
PyList(Vec<PythonDTO>),
4950
PyTuple(Vec<PythonDTO>),
5051
PyJson(Value),
@@ -175,6 +176,7 @@ impl ToSql for PythonDTO {
175176
PythonDTO::PyDateTimeTz(pydatetime_tz) => {
176177
<&DateTime<FixedOffset> as ToSql>::to_sql(&pydatetime_tz, ty, out)?;
177178
}
179+
PythonDTO::PyIpAddress(_pyidaddress) => {}
178180
PythonDTO::PyList(py_iterable) | PythonDTO::PyTuple(py_iterable) => {
179181
let mut items = Vec::new();
180182
for inner in py_iterable {

0 commit comments

Comments
 (0)