Skip to content

Commit

Permalink
add ruleset flush type
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhb committed Mar 16, 2024
1 parent 6fe77ae commit 3d3d4ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,14 @@ pub enum ResetObject {

#[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "lowercase")]
/// Empty contents in given object, e.g. remove all chains from given table or remove all elements from given set.
pub enum FlushObject {
Table(Table),
Chain(Chain),
Set(Set),
Map(Map),
Meter(Meter),
Ruleset(Option<Ruleset>),
}

// Ruleset Elements
Expand Down Expand Up @@ -385,6 +387,9 @@ pub struct Meter {
pub stmt: Statement,
}

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

#[derive(Debug, Clone, Eq, PartialEq, Serialize, Deserialize)]
pub struct MetainfoObject {
#[serde(skip_serializing_if = "Option::is_none")]
Expand Down

0 comments on commit 3d3d4ed

Please sign in to comment.