pub struct Operation {
pub operator: Operator,
pub arguments: Vec<FilterDirectiveEnum>,
}Expand description
Logical operation over other directives.
Fields§
§operator: OperatorThe operator to use.
arguments: Vec<FilterDirectiveEnum>The arguments to the operator.
Implementations§
Source§impl Operation
impl Operation
Sourcepub fn new(operator: Operator, arguments: Vec<FilterDirectiveEnum>) -> Self
pub fn new(operator: Operator, arguments: Vec<FilterDirectiveEnum>) -> Self
Create a new Operation.
Sourcepub fn and(arguments: Vec<FilterDirectiveEnum>) -> Self
pub fn and(arguments: Vec<FilterDirectiveEnum>) -> Self
Create an AND operation.
Sourcepub fn or(arguments: Vec<FilterDirectiveEnum>) -> Self
pub fn or(arguments: Vec<FilterDirectiveEnum>) -> Self
Create an OR operation.
Sourcepub fn not(argument: FilterDirectiveEnum) -> Self
pub fn not(argument: FilterDirectiveEnum) -> Self
Create a NOT operation.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Operation
impl<'de> Deserialize<'de> for Operation
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<Operation> for FilterDirectiveEnum
impl From<Operation> for FilterDirectiveEnum
impl FilterDirective for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
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