pub struct TaskIdentity { /* private fields */ }Expand description
Exact parameter-derived identity of one task.
The identity contains only the caller-selected parameter fields. Its label is deterministic compact JSON text intended for reporting, while equality validation uses the retained JSON values themselves.
Implementations§
Source§impl TaskIdentity
impl TaskIdentity
Sourcepub fn label(&self) -> &str
pub fn label(&self) -> &str
Returns the terminal label derived from exact parameter key/value pairs.
Sourcepub fn value(&self, key: &str) -> Option<&Value>
pub fn value(&self, key: &str) -> Option<&Value>
Borrows one exact identity value by parameter name.
Sourcepub fn iter(&self) -> impl ExactSizeIterator<Item = (&str, &Value)>
pub fn iter(&self) -> impl ExactSizeIterator<Item = (&str, &Value)>
Iterates identity fields in the configured display order.
Trait Implementations§
Source§impl Clone for TaskIdentity
impl Clone for TaskIdentity
Source§fn clone(&self) -> TaskIdentity
fn clone(&self) -> TaskIdentity
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 moreAuto Trait Implementations§
impl Freeze for TaskIdentity
impl RefUnwindSafe for TaskIdentity
impl Send for TaskIdentity
impl Sync for TaskIdentity
impl Unpin for TaskIdentity
impl UnsafeUnpin for TaskIdentity
impl UnwindSafe for TaskIdentity
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