pub struct LogicTree {
pub operator: LogicOperator,
pub conditions: Vec<LogicCondition>,
pub negated: bool,
}Fields§
§operator: LogicOperator§conditions: Vec<LogicCondition>§negated: boolImplementations§
Source§impl LogicTree
impl LogicTree
pub fn new(operator: LogicOperator) -> Self
pub fn with_conditions(self, conditions: Vec<LogicCondition>) -> Self
pub fn and() -> Self
pub fn or() -> Self
pub fn negated(self) -> Self
pub fn add_condition(self, condition: LogicCondition) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogicTree
impl<'de> Deserialize<'de> for LogicTree
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 From<LogicTree> for LogicCondition
impl From<LogicTree> for LogicCondition
impl StructuralPartialEq for LogicTree
Auto Trait Implementations§
impl Freeze for LogicTree
impl RefUnwindSafe for LogicTree
impl Send for LogicTree
impl Sync for LogicTree
impl Unpin for LogicTree
impl UnwindSafe for LogicTree
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