pub struct ActivityInfo {
pub task_id: String,
pub sequence: i32,
pub process_ms: i64,
pub candidates: Vec<String>,
}Expand description
Compact activity descriptor for GA encoding.
Extracted from Task/Activity to avoid cloning full domain objects.
Fields§
§task_id: StringParent task ID.
sequence: i32Activity sequence within task (1-based).
process_ms: i64Processing time (ms).
candidates: Vec<String>Candidate resource IDs.
Implementations§
Source§impl ActivityInfo
impl ActivityInfo
Sourcepub fn from_tasks(tasks: &[Task]) -> Vec<Self>
pub fn from_tasks(tasks: &[Task]) -> Vec<Self>
Extracts activity info from domain tasks.
Trait Implementations§
Source§impl Clone for ActivityInfo
impl Clone for ActivityInfo
Source§fn clone(&self) -> ActivityInfo
fn clone(&self) -> ActivityInfo
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 moreAuto Trait Implementations§
impl Freeze for ActivityInfo
impl RefUnwindSafe for ActivityInfo
impl Send for ActivityInfo
impl Sync for ActivityInfo
impl Unpin for ActivityInfo
impl UnsafeUnpin for ActivityInfo
impl UnwindSafe for ActivityInfo
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