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§
Auto Trait Implementations§
impl Forget for UpdateValidationInterceptorContext
impl Freeze for UpdateValidationInterceptorContextwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for UpdateValidationInterceptorContext
impl RefUnwindSafe for UpdateValidationInterceptorContext
impl Send for UpdateValidationInterceptorContext
impl Sync for UpdateValidationInterceptorContext
impl Unpin for UpdateValidationInterceptorContext
impl UnsafeUnpin for UpdateValidationInterceptorContextwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
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