Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Code shared from the Rust Playground
use serde::{Deserialize, Serialize};
use std::marker::PhantomData;
pub struct Service<'a, S: Serialize + Deserialize<'a>> {
last_status: S,
lifetime_keeper: PhantomData<& 'a S>
}
fn main() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.