pub struct RemoveQueryBuilder { /* private fields */ }
Expand description
Builder for a remove query request.
Implementations§
Source§impl RemoveQueryBuilder
impl RemoveQueryBuilder
Sourcepub fn start(self, time: SystemTime) -> Self
pub fn start(self, time: SystemTime) -> Self
Set the start time of the query.
Sourcepub fn start_us(self, time_us: u64) -> Self
pub fn start_us(self, time_us: u64) -> Self
Set the start time of the query as a unix timestamp in microseconds.
Sourcepub fn stop(self, time: SystemTime) -> Self
pub fn stop(self, time: SystemTime) -> Self
Set the end time of the query.
Sourcepub fn stop_us(self, time_us: u64) -> Self
pub fn stop_us(self, time_us: u64) -> Self
Set the end time of the query as a unix timestamp in microseconds.
Sourcepub fn when(self, condition: Value) -> Self
pub fn when(self, condition: Value) -> Self
Set the condition for the query. This will remove all records that match the condition. This is a destructive operation.
Sourcepub fn strict(self, strict: bool) -> Self
pub fn strict(self, strict: bool) -> Self
Set the query to be strict. If the query is strict, the query will return an error if any of the conditions are invalid. default: false
Sourcepub fn each_s(self, each_s: f64) -> Self
👎Deprecated since 1.15.0: Use $each_t
operator in when
condition. It will be removed in v1.18.0.
pub fn each_s(self, each_s: f64) -> Self
$each_t
operator in when
condition. It will be removed in v1.18.0.Set S, to return a record every S seconds. default: return all records
Auto Trait Implementations§
impl Freeze for RemoveQueryBuilder
impl !RefUnwindSafe for RemoveQueryBuilder
impl Send for RemoveQueryBuilder
impl Sync for RemoveQueryBuilder
impl Unpin for RemoveQueryBuilder
impl !UnwindSafe for RemoveQueryBuilder
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