pub struct TurnSettings {
pub mode: ValidationMode,
pub report: Option<PathBuf>,
}Expand description
What a TestTurn does when its turn ends.
Fields§
§mode: ValidationModeWhether records are reported, fail the turn, or are not collected.
report: Option<PathBuf>A file each record is appended to as a JSON line {"test", "level", "target", "message"}.
Implementations§
Source§impl TurnSettings
impl TurnSettings
Sourcepub fn from_environment() -> Self
pub fn from_environment() -> Self
mode and a non-empty ALPHA2_VALIDATION_REPORT.
Trait Implementations§
Source§impl Clone for TurnSettings
impl Clone for TurnSettings
Source§impl Debug for TurnSettings
impl Debug for TurnSettings
impl Eq for TurnSettings
Source§impl PartialEq for TurnSettings
impl PartialEq for TurnSettings
impl StructuralPartialEq for TurnSettings
Auto Trait Implementations§
impl Freeze for TurnSettings
impl RefUnwindSafe for TurnSettings
impl Send for TurnSettings
impl Sync for TurnSettings
impl Unpin for TurnSettings
impl UnsafeUnpin for TurnSettings
impl UnwindSafe for TurnSettings
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.