pub struct PhaseStartedPayload {
pub work_class: String,
pub phase: String,
pub corpus_size: Option<u64>,
}Expand description
Payload for khive_types::EventKind::PhaseStarted (ADR-103 Stage 1).
work_class is the closed ADR-103 enum (interactive | warm |
maintenance | inference), carried as a plain string here since the
enum itself is defined in a downstream crate; producers are responsible
for using the closed set of values. corpus_size is populated only when
it is cheaply known at phase start (e.g. a corpus count already on hand);
None when unknown at this point.
Fields§
§work_class: String§phase: String§corpus_size: Option<u64>Trait Implementations§
Source§impl Clone for PhaseStartedPayload
impl Clone for PhaseStartedPayload
Source§fn clone(&self) -> PhaseStartedPayload
fn clone(&self) -> PhaseStartedPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PhaseStartedPayload
impl Debug for PhaseStartedPayload
Source§impl<'de> Deserialize<'de> for PhaseStartedPayload
impl<'de> Deserialize<'de> for PhaseStartedPayload
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 PhaseStartedPayload
impl PartialEq for PhaseStartedPayload
Source§impl Serialize for PhaseStartedPayload
impl Serialize for PhaseStartedPayload
impl StructuralPartialEq for PhaseStartedPayload
Auto Trait Implementations§
impl Freeze for PhaseStartedPayload
impl RefUnwindSafe for PhaseStartedPayload
impl Send for PhaseStartedPayload
impl Sync for PhaseStartedPayload
impl Unpin for PhaseStartedPayload
impl UnsafeUnpin for PhaseStartedPayload
impl UnwindSafe for PhaseStartedPayload
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