pub struct ReviewPolicy {
pub interval: u32,
pub min_interval: u32,
pub state_change_threshold: f64,
}Expand description
レビュー条件の設定
Fields§
§interval: u32レビュー間隔(visits 単位)
min_interval: u32最小レビュー間隔(連続レビュー防止)
state_change_threshold: f64状態変化でトリガーする閾値(failure_rate の変化量)
Implementations§
Source§impl ReviewPolicy
impl ReviewPolicy
Sourcepub fn new(
interval: u32,
min_interval: u32,
state_change_threshold: f64,
) -> ReviewPolicy
pub fn new( interval: u32, min_interval: u32, state_change_threshold: f64, ) -> ReviewPolicy
新しい ReviewPolicy を作成
Sourcepub fn frequent() -> ReviewPolicy
pub fn frequent() -> ReviewPolicy
頻繁にレビューする設定
Sourcepub fn conservative() -> ReviewPolicy
pub fn conservative() -> ReviewPolicy
控えめにレビューする設定
Trait Implementations§
Source§impl Clone for ReviewPolicy
impl Clone for ReviewPolicy
Source§fn clone(&self) -> ReviewPolicy
fn clone(&self) -> ReviewPolicy
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 ReviewPolicy
impl Debug for ReviewPolicy
Source§impl Default for ReviewPolicy
impl Default for ReviewPolicy
Source§fn default() -> ReviewPolicy
fn default() -> ReviewPolicy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReviewPolicy
impl RefUnwindSafe for ReviewPolicy
impl Send for ReviewPolicy
impl Sync for ReviewPolicy
impl Unpin for ReviewPolicy
impl UnwindSafe for ReviewPolicy
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