pub struct UpdateValidationInterceptorContext { /* private fields */ }Expand description
Read-only context of one update-validation task.
Implementations§
Source§impl UpdateValidationInterceptorContext
impl UpdateValidationInterceptorContext
pub fn worker_id(&self) -> &str
pub fn task_queue(&self) -> &str
pub fn namespace(&self) -> &str
pub fn update_validation_task_id(&self) -> &str
Sourcepub fn attempt(&self) -> u64
pub fn attempt(&self) -> u64
The validation attempt; above 1 when the Server redelivers the task.
pub fn workflow_id(&self) -> Option<&str>
pub fn run_id(&self) -> Option<&str>
pub fn workflow_type(&self) -> &str
pub fn update_name(&self) -> &str
Sourcepub fn observability_context(&self) -> Option<&Value>
pub fn observability_context(&self) -> Option<&Value>
The task’s optional, untrusted observability metadata (trace carrier).
Trait Implementations§
Source§impl Clone for UpdateValidationInterceptorContext
impl Clone for UpdateValidationInterceptorContext
Source§fn clone(&self) -> UpdateValidationInterceptorContext
fn clone(&self) -> UpdateValidationInterceptorContext
Returns a copy 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 UpdateValidationInterceptorContext
impl RefUnwindSafe for UpdateValidationInterceptorContext
impl Send for UpdateValidationInterceptorContext
impl Sync for UpdateValidationInterceptorContext
impl Unpin for UpdateValidationInterceptorContext
impl UnwindSafe for UpdateValidationInterceptorContext
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