(&self, _serializer: S)
| 26 | |
| 27 | impl Serialize for NonSerializableStruct { |
| 28 | fn serialize<S>(&self, _serializer: S) -> Result<S::Ok, S::Error> |
| 29 | where |
| 30 | S: Serializer, |
| 31 | { |
| 32 | Err(serde::ser::Error::custom( |
| 33 | "intentionally failing serialization", |
| 34 | )) |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] |