pub struct Group {
pub key: GroupRef,
pub category: Category,
pub subject: String,
pub events: Vec<i64>,
pub started_at: Option<i64>,
pub ended_at: Option<i64>,
pub outcome: Outcome,
pub attempts: i32,
pub failure: Option<String>,
}Expand description
Several events that are one thing.
Fields§
§key: GroupRef§category: Category§subject: StringFrom the opening event, the activity type, timer id, child workflow id.
events: Vec<i64>Every member event id, in history order.
started_at: Option<i64>§ended_at: Option<i64>None while the group is still open.
outcome: Outcome§attempts: i32Highest attempt seen. 1 unless something was retried.
failure: Option<String>Implementations§
Source§impl Group
impl Group
Sourcepub fn duration_ms(&self) -> Option<i64>
pub fn duration_ms(&self) -> Option<i64>
Wall-clock duration, once it has ended.
Sourcepub fn payload_ends(&self) -> Vec<i64>
pub fn payload_ends(&self) -> Vec<i64>
The events whose payloads describe the group: the one that opened it and the one that closed it. The middle of a group is task plumbing and carries nothing.
A group still open has a single event, where those two are the same one, so the pair is deduplicated rather than showing that event’s input twice.
Sourcepub fn first_event(&self) -> Option<i64>
pub fn first_event(&self) -> Option<i64>
The id of the event that opened this group, for jumping to it.
Trait Implementations§
impl Eq for Group
impl StructuralPartialEq for Group
Auto Trait Implementations§
impl Freeze for Group
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnsafeUnpin for Group
impl UnwindSafe for Group
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