pub struct VersionQuery {
pub model_name_pattern: Option<String>,
pub version_filter: Option<VersionFilter>,
pub tags: Vec<String>,
pub tag_mode: TagMatchMode,
pub created_date_range: Option<DateRange>,
pub model_type: Option<String>,
pub sort_by: SortBy,
pub offset: Option<usize>,
pub limit: Option<usize>,
}Expand description
Query for searching model versions
Fields§
§model_name_pattern: Option<String>Model name pattern (supports wildcards)
version_filter: Option<VersionFilter>Version filter
Tags to match
tag_mode: TagMatchModeTag matching mode
created_date_range: Option<DateRange>Created date range
model_type: Option<String>Model type filter
sort_by: SortBySort order
offset: Option<usize>Pagination offset
limit: Option<usize>Pagination limit
Implementations§
Source§impl VersionQuery
impl VersionQuery
pub fn new() -> Self
pub fn model_name_pattern(self, pattern: String) -> Self
pub fn version_filter(self, filter: VersionFilter) -> Self
pub fn with_tag(self, tag: String) -> Self
pub fn tag_mode(self, mode: TagMatchMode) -> Self
pub fn created_after(self, date: DateTime<Utc>) -> Self
pub fn created_before(self, date: DateTime<Utc>) -> Self
pub fn model_type(self, model_type: String) -> Self
pub fn sort_by(self, sort_by: SortBy) -> Self
pub fn limit(self, limit: usize) -> Self
pub fn offset(self, offset: usize) -> Self
Trait Implementations§
Source§impl Clone for VersionQuery
impl Clone for VersionQuery
Source§fn clone(&self) -> VersionQuery
fn clone(&self) -> VersionQuery
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 VersionQuery
impl Debug for VersionQuery
Auto Trait Implementations§
impl Freeze for VersionQuery
impl RefUnwindSafe for VersionQuery
impl Send for VersionQuery
impl Sync for VersionQuery
impl Unpin for VersionQuery
impl UnsafeUnpin for VersionQuery
impl UnwindSafe for VersionQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more