pub struct FilterArgs { /* private fields */ }
Expand description
Representation of the start/end date and project list arguments for reports.
Implementations§
Source§impl FilterArgs
impl FilterArgs
Sourcepub fn new(dates: &[String], projs: &[String]) -> Result<Self>
pub fn new(dates: &[String], projs: &[String]) -> Result<Self>
Create the FilterArgs
from an array of date range description strings, and an array of
projects.
§Errors
- Return
Error::BadProjectFilter
if the supplied project Regexes are not valid - Return
Error::DateError
if the start date is not before the end date
Trait Implementations§
Source§impl DayFilter for FilterArgs
impl DayFilter for FilterArgs
Auto Trait Implementations§
impl Freeze for FilterArgs
impl RefUnwindSafe for FilterArgs
impl Send for FilterArgs
impl Sync for FilterArgs
impl Unpin for FilterArgs
impl UnwindSafe for FilterArgs
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