pub struct JobInfo {
pub name: &'static str,
pub description: Option<&'static str>,
pub timeout: Duration,
pub http_timeout: Option<Duration>,
pub priority: JobPriority,
pub retry: RetryConfig,
pub worker_capability: Option<&'static str>,
pub idempotent: bool,
pub idempotency_key: Option<&'static str>,
pub is_public: bool,
pub required_role: Option<&'static str>,
pub ttl: Option<Duration>,
}Expand description
Metadata for a registered job handler.
Fields§
§name: &'static str§description: Option<&'static str>§timeout: Duration§http_timeout: Option<Duration>§priority: JobPriority§retry: RetryConfig§worker_capability: Option<&'static str>§idempotent: bool§idempotency_key: Option<&'static str>§is_public: bool§required_role: Option<&'static str>§ttl: Option<Duration>Records are cleaned up after this duration; None means kept indefinitely.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JobInfo
impl RefUnwindSafe for JobInfo
impl Send for JobInfo
impl Sync for JobInfo
impl Unpin for JobInfo
impl UnsafeUnpin for JobInfo
impl UnwindSafe for JobInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more