pub trait MetadataExt<T> {
type Error;
// Required methods
fn extract(&self) -> Result<T, Self::Error>;
fn inject(&mut self, value: T) -> Result<(), Self::Error>;
}Expand description
Task metadata extension trait and implementations. This trait allows for injecting and extracting metadata associated with tasks.
Required Associated Types§
Required Methods§
Implementations on Foreign Types§
Source§impl<T> MetadataExt<T> for Map<String, Value>where
T: Serialize + DeserializeOwned,
Available on crate feature json only.
impl<T> MetadataExt<T> for Map<String, Value>where
T: Serialize + DeserializeOwned,
Available on crate feature
json only.