pub struct Metadata(pub MetadataMap<MetadataValue>);
Expand description
Extractor for all metadata in the current JobCall
.
Tuple Fields§
§0: MetadataMap<MetadataValue>
Trait Implementations§
Source§impl<Ctx> FromJobCallParts<Ctx> for Metadata
impl<Ctx> FromJobCallParts<Ctx> for Metadata
Source§type Rejection = Infallible
type Rejection = Infallible
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a job result.
Source§async fn from_job_call_parts(
parts: &mut JobCallParts,
_: &Ctx,
) -> Result<Self, Self::Rejection>
async fn from_job_call_parts( parts: &mut JobCallParts, _: &Ctx, ) -> Result<Self, Self::Rejection>
Perform the extraction.
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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