pub enum FlushObject<'a> {
Table(Table<'a>),
Chain(Chain<'a>),
Set(Box<Set<'a>>),
Map(Box<Map<'a>>),
Meter(Meter<'a>),
Ruleset(Option<Ruleset>),
}Expand description
Empty contents in given object, e.g. remove all chains from given table or remove all elements from given set.
Variants§
Table(Table<'a>)
A table to flush (i.e., remove all chains from table).
Chain(Chain<'a>)
A chain to flush (i.e., remove all rules from chain).
Set(Box<Set<'a>>)
A set to flush (i.e., remove all elements from set).
Map(Box<Map<'a>>)
A map to flush (i.e., remove all elements from map).
Meter(Meter<'a>)
A meter to flush.
Ruleset(Option<Ruleset>)
Flush the live ruleset (i.e., remove all elements from live ruleset).
Trait Implementations§
Source§impl<'a> Clone for FlushObject<'a>
impl<'a> Clone for FlushObject<'a>
Source§fn clone(&self) -> FlushObject<'a>
fn clone(&self) -> FlushObject<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for FlushObject<'a>
impl<'a> Debug for FlushObject<'a>
Source§impl<'de, 'a> Deserialize<'de> for FlushObject<'a>
impl<'de, 'a> Deserialize<'de> for FlushObject<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> JsonSchema for FlushObject<'a>
impl<'a> JsonSchema for FlushObject<'a>
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl<'a> PartialEq for FlushObject<'a>
impl<'a> PartialEq for FlushObject<'a>
Source§impl<'a> Serialize for FlushObject<'a>
impl<'a> Serialize for FlushObject<'a>
impl<'a> Eq for FlushObject<'a>
impl<'a> StructuralPartialEq for FlushObject<'a>
Auto Trait Implementations§
impl<'a> Freeze for FlushObject<'a>
impl<'a> RefUnwindSafe for FlushObject<'a>
impl<'a> Send for FlushObject<'a>
impl<'a> Sync for FlushObject<'a>
impl<'a> Unpin for FlushObject<'a>
impl<'a> UnsafeUnpin for FlushObject<'a>
impl<'a> UnwindSafe for FlushObject<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more