SHARE
TWEET

Untitled

a guest Jun 24th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. use serde::{Deserialize, Deserializer}; // 1.0.91
  2.  
  3. struct Duration;
  4.  
  5. impl<'de> Deserialize<'de> for Duration {
  6.     fn deserialize<D>(_deserializer: D) -> Result<Self, D::Error>
  7.     where
  8.         D: Deserializer<'de>,
  9.     {
  10.         #[derive(Deserialize)]
  11.         struct Raw {}
  12.  
  13.         Ok(Duration)
  14.     }
  15. }
  16.  
  17. fn main() {}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top