Skip to content

Commit dd36155

Browse files
committed
feat: add (de)serialization derive
1 parent 92ffdae commit dd36155

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
- `network::protocol::codec::iproto_key::SQL_INFO` constant
1515
- Added optional argument timeout to `network::client::Client::connect_with_config`
1616
- Untagged enum represention as in serde with `#[encode(untagged)]` attribute
17+
- `tlua::Nil` now supports (de)serialization via serde
1718

1819
### Changed
1920
- `network::protocol::codec::IProtoType` uses C language representation

tlua/src/values.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,9 @@ where
656656
}
657657
}
658658

659-
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
659+
#[derive(
660+
Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, serde::Serialize, serde::Deserialize,
661+
)]
660662
pub struct Nil;
661663

662664
impl_push_read! {Nil,

0 commit comments

Comments
 (0)