Created
December 22, 2017 21:39
-
-
Save rrichardson/5e6fee3d3ccfe69f3b933c8b7b788b70 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[derive(Debug, Serialize, Deserialize, PartialEq, Eq, Clone)] | |
#[serde(untagged)] | |
pub enum PlatformNotification { | |
Apn( | |
ApnNotification, | |
#[serde(skip)] | |
Url), | |
Gcm( | |
GcmNotification, | |
#[serde(skip)] | |
Url) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
produces :
So it is untagged, but it includes the Url in the tuple.. what I want to do is just have
without the 'enum' array wrapper or url.