pub struct AsyncJobConfig {
pub submit: JobRequest,
pub job_id: String,
pub poll: PollSpec,
pub status: JobStatus,
pub fetch: JobRequest,
}Expand description
The async_job: config block.
Fields§
§submit: JobRequestJob-creation request.
job_id: StringJSONPath to the job id in the submit response.
poll: PollSpecStatus polling.
status: JobStatusTerminal-state classification.
fetch: JobRequestResult-download request.
Implementations§
Source§impl AsyncJobConfig
impl AsyncJobConfig
Sourcepub fn validate(&self) -> Result<(), FaucetError>
pub fn validate(&self) -> Result<(), FaucetError>
Validate the block at config-load time.
Trait Implementations§
Source§impl Clone for AsyncJobConfig
impl Clone for AsyncJobConfig
Source§fn clone(&self) -> AsyncJobConfig
fn clone(&self) -> AsyncJobConfig
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 AsyncJobConfig
impl Debug for AsyncJobConfig
Source§impl<'de> Deserialize<'de> for AsyncJobConfig
impl<'de> Deserialize<'de> for AsyncJobConfig
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 AsyncJobConfig
impl JsonSchema for AsyncJobConfig
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(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for AsyncJobConfig
impl PartialEq for AsyncJobConfig
Source§impl Serialize for AsyncJobConfig
impl Serialize for AsyncJobConfig
impl StructuralPartialEq for AsyncJobConfig
Auto Trait Implementations§
impl Freeze for AsyncJobConfig
impl RefUnwindSafe for AsyncJobConfig
impl Send for AsyncJobConfig
impl Sync for AsyncJobConfig
impl Unpin for AsyncJobConfig
impl UnsafeUnpin for AsyncJobConfig
impl UnwindSafe for AsyncJobConfig
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