Created
December 22, 2017 21:58
-
-
Save rrichardson/f64aa0ae1f0f42e24c73cfefd78b3775 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
impl Serialize for PlatformNotification { | |
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> | |
where S: Serializer | |
{ | |
use self::PlatformNotification::*; | |
match self { | |
&Apn(ref apn, _) => apn.serialize(serializer), | |
&Gcm(ref gcm, _) => gcm.serialize(serializer), | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment