pub enum Filter {
Show 14 variants
AccountEq(String),
AccountIn(Vec<String>),
AccountSubtree(String),
CounterpartyEq(String),
CounterpartyIn(Vec<String>),
CommodityEq(String),
CommodityIn(Vec<String>),
AmountGt(Amount),
AmountLt(Amount),
AmountEq(Amount),
Tag {
entity: Entity,
name: String,
value: String,
},
And(Vec<Filter>),
Or(Vec<Filter>),
Not(Box<Filter>),
}Expand description
A parsed filter. Ids stay text: the server checks them as UUIDs.
Variants§
AccountEq(String)
AccountIn(Vec<String>)
AccountSubtree(String)
CounterpartyEq(String)
CounterpartyIn(Vec<String>)
CommodityEq(String)
CommodityIn(Vec<String>)
AmountGt(Amount)
AmountLt(Amount)
AmountEq(Amount)
Tag
And(Vec<Filter>)
Or(Vec<Filter>)
Not(Box<Filter>)
Implementations§
Source§impl Filter
impl Filter
Sourcepub fn parse(input: &str) -> Result<Self, String>
pub fn parse(input: &str) -> Result<Self, String>
§Errors
The reason the text is not exactly one filter expression of the grammar.
Sourcepub fn parse_located(input: &str) -> Result<Self, ParseError>
pub fn parse_located(input: &str) -> Result<Self, ParseError>
Self::parse with the offset the text went wrong at.
§Errors
The reason and place the text is not exactly one filter expression.
Trait Implementations§
impl Eq for Filter
impl StructuralPartialEq for Filter
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnsafeUnpin for Filter
impl UnwindSafe for Filter
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