Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Map type #4

Closed
jwhb opened this issue Mar 20, 2023 · 1 comment
Closed

Implement Map type #4

jwhb opened this issue Mar 20, 2023 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@jwhb
Copy link
Member

jwhb commented Mar 20, 2023

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

nftables-rs/src/schema.rs

Lines 198 to 201 in 720d2c7

#[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)]
pub struct Map {
// TODO
}

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

A test should be added, like here.

@jwhb jwhb added enhancement New feature or request good first issue Good for newcomers labels Mar 20, 2023
@jwhb
Copy link
Member Author

jwhb commented Jan 22, 2024

Implemented in #11. Thanks @marcinosypka!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant