pub struct Query {Show 13 fields
pub cmd: String,
pub ids: Vec<i32>,
pub tags: Vec<String>,
pub anti_tags: Vec<String>,
pub project: String,
pub anti_projects: Vec<String>,
pub due: Option<DateTime<Utc>>,
pub date_filter: String,
pub priority: String,
pub template: i32,
pub text: String,
pub ignore_context: bool,
pub note: String,
}Fields§
§cmd: String§ids: Vec<i32>§project: String§anti_projects: Vec<String>§due: Option<DateTime<Utc>>§date_filter: String§priority: String§template: i32§text: String§ignore_context: bool§note: StringImplementations§
Source§impl Query
impl Query
Sourcepub fn print_context_description(&self)
pub fn print_context_description(&self)
Prints context description with color
Sourcepub fn has_operators(&self) -> bool
pub fn has_operators(&self) -> bool
Returns true if the query has filter operators
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Query
impl<'de> Deserialize<'de> for Query
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
impl StructuralPartialEq for Query
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnwindSafe for Query
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