pub struct ModelFilter {
pub learn_model_name: Option<String>,
pub base_model: Option<String>,
pub created_after: Option<u64>,
pub created_before: Option<u64>,
pub limit: Option<usize>,
pub offset: Option<usize>,
}Expand description
TrainedModel 検索フィルタ
Fields§
§learn_model_name: Option<String>LearnModel 名でフィルタ
base_model: Option<String>ベースモデルでフィルタ
created_after: Option<u64>作成日時の下限(Unix timestamp ms)
created_before: Option<u64>作成日時の上限(Unix timestamp ms)
limit: Option<usize>最大件数
offset: Option<usize>オフセット
Implementations§
Source§impl ModelFilter
impl ModelFilter
Sourcepub fn new() -> ModelFilter
pub fn new() -> ModelFilter
新しいフィルタを作成
Sourcepub fn learn_model(self, name: impl Into<String>) -> ModelFilter
pub fn learn_model(self, name: impl Into<String>) -> ModelFilter
LearnModel 名でフィルタ
Sourcepub fn base_model(self, model: impl Into<String>) -> ModelFilter
pub fn base_model(self, model: impl Into<String>) -> ModelFilter
ベースモデルでフィルタ
Sourcepub fn created_after(self, timestamp: u64) -> ModelFilter
pub fn created_after(self, timestamp: u64) -> ModelFilter
作成日時の下限を設定
Sourcepub fn created_before(self, timestamp: u64) -> ModelFilter
pub fn created_before(self, timestamp: u64) -> ModelFilter
作成日時の上限を設定
Sourcepub fn limit(self, limit: usize) -> ModelFilter
pub fn limit(self, limit: usize) -> ModelFilter
最大件数を設定
Sourcepub fn offset(self, offset: usize) -> ModelFilter
pub fn offset(self, offset: usize) -> ModelFilter
オフセットを設定
Trait Implementations§
Source§impl Clone for ModelFilter
impl Clone for ModelFilter
Source§fn clone(&self) -> ModelFilter
fn clone(&self) -> ModelFilter
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 ModelFilter
impl Debug for ModelFilter
Source§impl Default for ModelFilter
impl Default for ModelFilter
Source§fn default() -> ModelFilter
fn default() -> ModelFilter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ModelFilter
impl RefUnwindSafe for ModelFilter
impl Send for ModelFilter
impl Sync for ModelFilter
impl Unpin for ModelFilter
impl UnwindSafe for ModelFilter
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