pub enum ReportFilter {
Show 15 variants
AccountEq(Uuid),
AccountIn(Vec<Uuid>),
AccountSubtree(Uuid),
CounterpartyEq(Uuid),
CounterpartyIn(Vec<Uuid>),
CommodityEq(Uuid),
CommodityIn(Vec<Uuid>),
AmountGt(Rational64),
AmountLt(Rational64),
AmountEq(Rational64),
Tag {
entity: FilterEntity,
name: String,
value: String,
},
TagIn {
entity: FilterEntity,
name: String,
values: Vec<String>,
},
And(Vec<ReportFilter>),
Or(Vec<ReportFilter>),
Not(Box<ReportFilter>),
}Variants§
AccountEq(Uuid)
AccountIn(Vec<Uuid>)
AccountSubtree(Uuid)
CounterpartyEq(Uuid)
CounterpartyIn(Vec<Uuid>)
CommodityEq(Uuid)
CommodityIn(Vec<Uuid>)
AmountGt(Rational64)
AmountLt(Rational64)
AmountEq(Rational64)
Tag
TagIn
And(Vec<ReportFilter>)
Or(Vec<ReportFilter>)
Not(Box<ReportFilter>)
Implementations§
Source§impl ReportFilter
impl ReportFilter
Sourcepub fn from_sexpr(input: &str) -> Result<Self, ReportError>
pub fn from_sexpr(input: &str) -> Result<Self, ReportError>
§Errors
InvalidReportFilter when the text is not one filter of the grammar.
Trait Implementations§
Source§impl Clone for ReportFilter
impl Clone for ReportFilter
Source§impl Debug for ReportFilter
impl Debug for ReportFilter
Source§impl<'de> Deserialize<'de> for ReportFilter
impl<'de> Deserialize<'de> for ReportFilter
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 Serialize for ReportFilter
impl Serialize for ReportFilter
Source§impl TryFrom<Filter> for ReportFilter
impl TryFrom<Filter> for ReportFilter
Source§type Error = ReportError
type Error = ReportError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for ReportFilter
impl RefUnwindSafe for ReportFilter
impl Send for ReportFilter
impl Sync for ReportFilter
impl Unpin for ReportFilter
impl UnsafeUnpin for ReportFilter
impl UnwindSafe for ReportFilter
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more