pub struct SegmentRule {
pub rule_type: SegmentRuleType,
pub conditions: Vec<Condition>,
pub rules: Vec<SegmentRule>,
}Expand description
Represents a segment rule (can be recursive).
Fields§
§rule_type: SegmentRuleTypeThe type of rule (ALL, ANY, NONE).
conditions: Vec<Condition>Conditions for this rule.
rules: Vec<SegmentRule>Nested rules.
Trait Implementations§
Source§impl Clone for SegmentRule
impl Clone for SegmentRule
Source§fn clone(&self) -> SegmentRule
fn clone(&self) -> SegmentRule
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 Debug for SegmentRule
impl Debug for SegmentRule
Source§impl<'de> Deserialize<'de> for SegmentRule
impl<'de> Deserialize<'de> for SegmentRule
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
Auto Trait Implementations§
impl Freeze for SegmentRule
impl RefUnwindSafe for SegmentRule
impl Send for SegmentRule
impl Sync for SegmentRule
impl Unpin for SegmentRule
impl UnwindSafe for SegmentRule
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