10 lines
188 B
Rust
10 lines
188 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
pub struct GenericStruct<T> {
|
|
x: T,
|
|
}
|
|
|
|
#[derive(Serialize, Deserialize)]
|
|
pub struct GenericNewTypeStruct<T>(T);
|