pub struct ActiveHookSnapshot {
pub run_id: String,
pub hook: HookSnapshot,
}Expand description
Active external callback hook with the run that owns it.
Fields§
§run_id: String§hook: HookSnapshotImplementations§
Source§impl ActiveHookSnapshot
impl ActiveHookSnapshot
Sourcepub fn metadata_as<T>(&self) -> Result<T>where
T: DeserializeOwned,
pub fn metadata_as<T>(&self) -> Result<T>where
T: DeserializeOwned,
Decode the active hook metadata into a host-defined serde type.
Trait Implementations§
Source§impl Clone for ActiveHookSnapshot
impl Clone for ActiveHookSnapshot
Source§fn clone(&self) -> ActiveHookSnapshot
fn clone(&self) -> ActiveHookSnapshot
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 ActiveHookSnapshot
impl Debug for ActiveHookSnapshot
Source§impl<'de> Deserialize<'de> for ActiveHookSnapshot
impl<'de> Deserialize<'de> for ActiveHookSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ActiveHookSnapshot
impl PartialEq for ActiveHookSnapshot
Source§fn eq(&self, other: &ActiveHookSnapshot) -> bool
fn eq(&self, other: &ActiveHookSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ActiveHookSnapshot
impl Serialize for ActiveHookSnapshot
impl StructuralPartialEq for ActiveHookSnapshot
Auto Trait Implementations§
impl Freeze for ActiveHookSnapshot
impl RefUnwindSafe for ActiveHookSnapshot
impl Send for ActiveHookSnapshot
impl Sync for ActiveHookSnapshot
impl Unpin for ActiveHookSnapshot
impl UnsafeUnpin for ActiveHookSnapshot
impl UnwindSafe for ActiveHookSnapshot
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