pub struct EpisodeFilter {
pub learn_model: Option<String>,
pub scenario_name: Option<String>,
pub outcome_filter: Option<OutcomeFilter>,
pub since: Option<u64>,
pub until: Option<u64>,
pub worker_id: Option<usize>,
pub limit: Option<usize>,
pub offset: Option<usize>,
}Expand description
Episode 検索用フィルタ
Fields§
§learn_model: Option<String>LearnModel 名でフィルタ
scenario_name: Option<String>Scenario 名でフィルタ
outcome_filter: Option<OutcomeFilter>Outcome でフィルタ
since: Option<u64>開始時刻以降(Unix timestamp ms)
until: Option<u64>終了時刻以前(Unix timestamp ms)
worker_id: Option<usize>Worker ID でフィルタ
limit: Option<usize>最大件数
offset: Option<usize>オフセット
Implementations§
Source§impl EpisodeFilter
impl EpisodeFilter
pub fn new() -> EpisodeFilter
pub fn learn_model(self, name: impl Into<String>) -> EpisodeFilter
Sourcepub fn strategy(self, name: impl Into<String>) -> EpisodeFilter
pub fn strategy(self, name: impl Into<String>) -> EpisodeFilter
strategy は learn_model のエイリアス(後方互換性)
pub fn scenario(self, name: impl Into<String>) -> EpisodeFilter
pub fn outcome(self, filter: OutcomeFilter) -> EpisodeFilter
pub fn since(self, timestamp_ms: u64) -> EpisodeFilter
pub fn until(self, timestamp_ms: u64) -> EpisodeFilter
pub fn worker_id(self, id: usize) -> EpisodeFilter
pub fn limit(self, limit: usize) -> EpisodeFilter
pub fn offset(self, offset: usize) -> EpisodeFilter
Sourcepub fn matches_dto(&self, dto: &EpisodeDto) -> bool
pub fn matches_dto(&self, dto: &EpisodeDto) -> bool
EpisodeDto がフィルタ条件にマッチするか判定
Trait Implementations§
Source§impl Clone for EpisodeFilter
impl Clone for EpisodeFilter
Source§fn clone(&self) -> EpisodeFilter
fn clone(&self) -> EpisodeFilter
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 EpisodeFilter
impl Debug for EpisodeFilter
Source§impl Default for EpisodeFilter
impl Default for EpisodeFilter
Source§fn default() -> EpisodeFilter
fn default() -> EpisodeFilter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EpisodeFilter
impl RefUnwindSafe for EpisodeFilter
impl Send for EpisodeFilter
impl Sync for EpisodeFilter
impl Unpin for EpisodeFilter
impl UnwindSafe for EpisodeFilter
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