Struct edge_schema::schema::JobDefinition
source · pub struct JobDefinition {
pub max_retries: Option<u32>,
pub timeout: Option<PrettyDuration>,
pub invoke: JobInvoke,
}Fields§
§max_retries: Option<u32>Number of retries before the job is considered failed.
Defaults to 0.
timeout: Option<PrettyDuration>Amount of time after the job is aborted and considered failed.
Defaults to 1 hour.
invoke: JobInvokeThe thing executed by this cron job.
May be either triggering an HTTP request to a given app, or running spawning a new instance.
Trait Implementations§
source§impl Clone for JobDefinition
impl Clone for JobDefinition
source§fn clone(&self) -> JobDefinition
fn clone(&self) -> JobDefinition
Returns a copy of the value. Read more
1.0.0 · 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 JobDefinition
impl Debug for JobDefinition
source§impl<'de> Deserialize<'de> for JobDefinition
impl<'de> Deserialize<'de> for JobDefinition
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 JsonSchema for JobDefinition
impl JsonSchema for JobDefinition
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moresource§impl PartialEq for JobDefinition
impl PartialEq for JobDefinition
source§fn eq(&self, other: &JobDefinition) -> bool
fn eq(&self, other: &JobDefinition) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for JobDefinition
impl Serialize for JobDefinition
impl Eq for JobDefinition
impl StructuralEq for JobDefinition
impl StructuralPartialEq for JobDefinition
Auto Trait Implementations§
impl RefUnwindSafe for JobDefinition
impl Send for JobDefinition
impl Sync for JobDefinition
impl Unpin for JobDefinition
impl UnwindSafe for JobDefinition
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.