Name Description Size
lib.rs Windows [`FILETIME`](https://docs.microsoft.com/en-us/windows/desktop/api/minwinbase/ns-minwinbase-filetime) and [`SYSTEMTIME`](https://docs.microsoft.com/en-us/windows/desktop/api/minwinbase/ns-minwinbase-systemtime) string and binary serialization A transparent wrapper is provided for each type, with `Display` for [`SystemTimeUTC`](struct.SystemTimeUTC.html) and `Ord` and `Eq` for [`FileTime`](struct.FileTime.html). # serde # Use the `filetime_serde` feature to derive `Serialize` and `Deserialize`, you can then derive them for structs containing `FILETIME` and `SYSTEMTIME` like so: ``` # fn main() {} # # #[cfg(feature = "filetime_serde")] # extern crate serde_derive; # extern crate winapi; # # #[cfg(feature = "filetime_serde")] # mod test { use filetime_win::{FileTimeSerde, SystemTimeSerde}; use serde_derive::{Deserialize, Serialize}; use winapi::shared::minwindef::FILETIME; use winapi::um::minwinbase::SYSTEMTIME; #[derive(Serialize, Deserialize)] struct SerdeTest { #[serde(with = "FileTimeSerde")] ft: FILETIME, #[serde(with = "SystemTimeSerde")] st: SYSTEMTIME, } # } ``` 7799