8 Commits
Author SHA1 Message Date
wiegratz 9f109c51e4 fix(stmt): fix named counter
BREAKING CHANGE: Use new enum variants of `Counter`: `Named` and `Anonymous`.
2024-10-06 18:14:32 +02:00
wiegratz 51ccf106da fix: store NfListObjects in heap
BREAKING CHANGE: With enum `NfObject::ListObject`, use `Box::new(NfListObject...)`.
2024-10-06 16:52:49 +02:00
Paul Holzinger 0deaf7d864 fix payload raw expression
The current code cannot handle the ParloadRaw type, serde is unable to
deserialize the json with a raw payload fields.

This is because serde cannot handle two fields with the same name and I
haven't found a way to make this work like that. Instead we have to use
a untagged enum that share both possible payload values.

Therefore this is an API break: NamedExpression now only contains one
Payload field which contains the Payload enum, the old Payload type is
renamed to PayloadField.

Lastly, export the PayloadRaw fields so they can be used externally.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-03-11 16:35:25 +01:00
Noel 4f427820a7 Fix queue JSON serialisation when flag is none 2023-07-07 14:01:56 +02:00
Noel d08001ffb8 Update queue flags to be optional 2023-07-07 12:00:46 +02:00
Thomas Spellman eeda434ac9 change insert to match add
This change adds the necessary {"rule": ...} json object, similar to how the add command works.
2022-12-15 21:34:43 -08:00
Thomas Spellman 0c80cf4832 Fix test imports 2022-12-15 21:32:21 -08:00
wiegratz e331c6f8ad lib: first commit 2022-09-30 17:32:07 +00:00