pub struct ListBaselinesQuery {
pub benchmark: Option<String>,
pub benchmark_prefix: Option<String>,
pub git_ref: Option<String>,
pub git_sha: Option<String>,
pub tags: Option<String>,
pub since: Option<DateTime<Utc>>,
pub until: Option<DateTime<Utc>>,
pub limit: u32,
pub offset: u64,
pub include_receipt: bool,
}Expand description
Query parameters for listing baselines.
Fields§
§benchmark: Option<String>Exact benchmark name match.
benchmark_prefix: Option<String>Benchmark name prefix filter.
git_ref: Option<String>Git reference filter (supports glob patterns).
git_sha: Option<String>Exact git SHA filter.
Filter by tags (comma-separated, AND logic).
since: Option<DateTime<Utc>>Filter baselines created after this time.
until: Option<DateTime<Utc>>Filter baselines created before this time.
limit: u32Maximum results (default: 50, max: 200).
offset: u64Pagination offset.
include_receipt: boolInclude full receipt in response.
Implementations§
Source§impl ListBaselinesQuery
impl ListBaselinesQuery
Sourcepub fn with_benchmark(self, benchmark: impl Into<String>) -> Self
pub fn with_benchmark(self, benchmark: impl Into<String>) -> Self
Filters by benchmark name.
Sourcepub fn with_benchmark_prefix(self, prefix: impl Into<String>) -> Self
pub fn with_benchmark_prefix(self, prefix: impl Into<String>) -> Self
Filters by benchmark name prefix.
Sourcepub fn with_git_ref(self, git_ref: impl Into<String>) -> Self
pub fn with_git_ref(self, git_ref: impl Into<String>) -> Self
Filters by git reference.
Filters by tags (comma-separated).
Sourcepub fn with_limit(self, limit: u32) -> Self
pub fn with_limit(self, limit: u32) -> Self
Sets the maximum number of results.
Sourcepub fn with_offset(self, offset: u64) -> Self
pub fn with_offset(self, offset: u64) -> Self
Sets the pagination offset.
Sourcepub fn with_receipts(self) -> Self
pub fn with_receipts(self) -> Self
Includes full receipts in the response.
Sourcepub fn to_query_params(&self) -> Vec<(String, String)>
pub fn to_query_params(&self) -> Vec<(String, String)>
Converts the query to URL query parameters.
Trait Implementations§
Source§impl Clone for ListBaselinesQuery
impl Clone for ListBaselinesQuery
Source§fn clone(&self) -> ListBaselinesQuery
fn clone(&self) -> ListBaselinesQuery
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ListBaselinesQuery
impl Debug for ListBaselinesQuery
Source§impl Default for ListBaselinesQuery
impl Default for ListBaselinesQuery
Source§impl<'de> Deserialize<'de> for ListBaselinesQuery
impl<'de> Deserialize<'de> for ListBaselinesQuery
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
Auto Trait Implementations§
impl Freeze for ListBaselinesQuery
impl RefUnwindSafe for ListBaselinesQuery
impl Send for ListBaselinesQuery
impl Sync for ListBaselinesQuery
impl Unpin for ListBaselinesQuery
impl UnsafeUnpin for ListBaselinesQuery
impl UnwindSafe for ListBaselinesQuery
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