File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44mod handlers;
55mod model;
66mod connection_manager;
7- mod serialization;
87mod problem;
98mod errors;
109mod url_part_utf8_string;
@@ -20,9 +19,6 @@ mod windows_service_main;
2019
2120#[ macro_use] extern crate log;
2221
23- // #[cfg(feature = "run-windows-service")]
24- // #[macro_use] extern crate windows_service;
25-
2622#[ cfg( feature = "run-windows-service" ) ]
2723fn main ( ) -> windows_service:: Result < ( ) > {
2824 windows_service_main:: run ( )
Original file line number Diff line number Diff line change 11use serde:: { Serialize , Deserialize } ;
22use tiberius:: { numeric:: Decimal , time:: chrono:: NaiveDateTime } ;
3- use crate :: serialization:: serialize_optional_datetime;
43
54#[ allow( non_snake_case) ]
65#[ derive( Debug , Serialize ) ]
76pub struct Order {
87 pub consId : i32 ,
98 pub orderState : i32 ,
10- #[ serde( serialize_with = "serialize_optional_datetime" ) ]
119 pub incomeDate : Option < NaiveDateTime > ,
1210 pub supplierId : i32 ,
1311 pub accountNum : Option < String > ,
14- #[ serde( serialize_with = "serialize_optional_datetime" ) ]
1512 pub accountDate : Option < NaiveDateTime > ,
1613 pub bySelf : Option < i32 > ,
1714 pub hasTrust : bool ,
@@ -25,11 +22,9 @@ pub struct Order {
2522#[ derive( Debug , Serialize ) ]
2623pub struct OrderView {
2724 pub consId : i32 ,
28- #[ serde( serialize_with = "serialize_optional_datetime" ) ]
2925 pub incomeDate : Option < NaiveDateTime > ,
3026 pub supplierId : i32 ,
3127 pub accountNum : Option < String > ,
32- #[ serde( serialize_with = "serialize_optional_datetime" ) ]
3328 pub accountDate : Option < NaiveDateTime > ,
3429 pub bySelf : Option < i32 > ,
3530 pub hasTrust : bool ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments