pub struct SnapshotQuery {
pub function_name: Option<String>,
pub module_name: Option<String>,
pub model_name: Option<String>,
pub start_time: Option<DateTime<Utc>>,
pub end_time: Option<DateTime<Utc>>,
pub tags: Option<HashMap<String, String>>,
pub limit: Option<usize>,
pub offset: Option<usize>,
}Fields§
§function_name: Option<String>§module_name: Option<String>§model_name: Option<String>§start_time: Option<DateTime<Utc>>§end_time: Option<DateTime<Utc>>§limit: Option<usize>§offset: Option<usize>Implementations§
Source§impl SnapshotQuery
impl SnapshotQuery
pub fn new() -> Self
pub fn with_function_name(self, function_name: impl Into<String>) -> Self
pub fn with_module_name(self, module_name: impl Into<String>) -> Self
pub fn with_model_name(self, model_name: impl Into<String>) -> Self
pub fn with_time_range(self, start: DateTime<Utc>, end: DateTime<Utc>) -> Self
pub fn with_tag(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn with_limit(self, limit: usize) -> Self
pub fn with_offset(self, offset: usize) -> Self
Trait Implementations§
Source§impl Clone for SnapshotQuery
impl Clone for SnapshotQuery
Source§impl Debug for SnapshotQuery
impl Debug for SnapshotQuery
Auto Trait Implementations§
impl Freeze for SnapshotQuery
impl RefUnwindSafe for SnapshotQuery
impl Send for SnapshotQuery
impl Sync for SnapshotQuery
impl Unpin for SnapshotQuery
impl UnsafeUnpin for SnapshotQuery
impl UnwindSafe for SnapshotQuery
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