pub struct StatusCounts {
pub total: i64,
/* private fields */
}Expand description
Counts per status for the list header, from CountWorkflowExecutions ... GROUP BY.
Fields§
§total: i64The server’s total. Grouped counts are approximate and may sum to less than this, which is documented Temporal behaviour, so the total is kept separately rather than derived.
Implementations§
Source§impl StatusCounts
impl StatusCounts
pub fn new( total: i64, counts: impl IntoIterator<Item = (WorkflowStatus, i64)>, ) -> Self
Sourcepub fn iter(&self) -> impl Iterator<Item = (WorkflowStatus, i64)> + '_
pub fn iter(&self) -> impl Iterator<Item = (WorkflowStatus, i64)> + '_
Non-zero counts, in display order.
pub fn get(&self, status: WorkflowStatus) -> i64
Trait Implementations§
Source§impl Clone for StatusCounts
impl Clone for StatusCounts
Source§fn clone(&self) -> StatusCounts
fn clone(&self) -> StatusCounts
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 StatusCounts
impl Debug for StatusCounts
Source§impl Default for StatusCounts
impl Default for StatusCounts
Source§fn default() -> StatusCounts
fn default() -> StatusCounts
Returns the “default value” for a type. Read more
impl Eq for StatusCounts
Source§impl PartialEq for StatusCounts
impl PartialEq for StatusCounts
impl StructuralPartialEq for StatusCounts
Auto Trait Implementations§
impl Freeze for StatusCounts
impl RefUnwindSafe for StatusCounts
impl Send for StatusCounts
impl Sync for StatusCounts
impl Unpin for StatusCounts
impl UnsafeUnpin for StatusCounts
impl UnwindSafe for StatusCounts
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