pub struct WatchFacts {
pub id: String,
pub name: String,
pub label: String,
pub min_score: f64,
pub frames: u32,
pub zone: Option<String>,
pub cooldown_secs: u32,
pub woke_today: u32,
pub wakes_for: Option<String>,
}Expand description
A watch condition (spec 3.7 §7.10): what wakes the agent.
Fields§
§id: StringIts id.
name: String“Seal tear”.
label: StringThe label it looks for: “seal tear”.
min_score: f64The least score.
frames: u32Frames in a row.
zone: Option<String>The zone it looks inside, by id.
cooldown_secs: u32Seconds before it wakes again for the same track.
woke_today: u32Times it woke the agent today.
wakes_for: Option<String>What the agent sleeps until, as its line says: “a defect” (“Asleep until a defect”); “a seal tear” when unset.
Trait Implementations§
Source§impl Clone for WatchFacts
impl Clone for WatchFacts
Source§impl Debug for WatchFacts
impl Debug for WatchFacts
Source§impl<'de> Deserialize<'de> for WatchFacts
impl<'de> Deserialize<'de> for WatchFacts
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WatchFacts
impl PartialEq for WatchFacts
Source§impl Serialize for WatchFacts
impl Serialize for WatchFacts
impl StructuralPartialEq for WatchFacts
Auto Trait Implementations§
impl Forget for WatchFacts
impl Freeze for WatchFacts
impl Move for WatchFacts
impl RefUnwindSafe for WatchFacts
impl Send for WatchFactswhere
RawVecInner: Send,
impl Sync for WatchFactswhere
RawVecInner: Sync,
impl Unpin for WatchFacts
impl UnsafeUnpin for WatchFacts
impl UnwindSafe for WatchFactswhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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