namib-project / nftables-rs

Safe abstraction for nftables JSON API (libnftables-json).
https://crates.io/crates/nftables
Apache License 2.0
32 stars 15 forks source link

Implement Map type #4

Closed jwhb closed 10 months ago

jwhb commented 1 year ago

The schema::Map type is not implemented yet. It's structure and functionality will mostly follow schema::Set.

https://github.com/namib-project/nftables-rs/blob/720d2c75db0d0481fe092aee72a6754ff18afcb0/src/schema.rs#L198-L201

Documentation for Set/Map: https://www.mankier.com/5/libnftables-json#Ruleset_Elements-Set_/_Map

A test should be added, like here.

jwhb commented 10 months ago

Implemented in #11. Thanks @marcinosypka!