[−][src]Struct mcai_worker_sdk::job::JobResult
Implementations
impl JobResult
[src]
pub fn new(job_id: u64) -> JobResult
[src]
pub fn with_status(self, status: JobStatus) -> Self
[src]
pub fn with_error(self, error: Error) -> Self
[src]
pub fn with_message(self, message: &str) -> Self
[src]
pub fn with_parameters(self, parameters: &mut Vec<Parameter>) -> Self
[src]
pub fn with_destination_paths(self, destination_paths: &mut Vec<String>) -> Self
[src]
pub fn with_json<T>(self, id: &str, serializable: &T) -> Result<Self, String> where
T: Serialize + Sized,
[src]
T: Serialize + Sized,
pub fn get_job_id(&self) -> u64
[src]
pub fn get_str_job_id(&self) -> String
[src]
pub fn get_status(&self) -> &JobStatus
[src]
pub fn get_execution_duration(&self) -> f64
[src]
pub fn get_parameters(&self) -> &Vec<Parameter>
[src]
pub fn get_destination_paths(&self) -> &Vec<String>
[src]
pub fn update_execution_duration(&mut self)
[src]
Trait Implementations
impl Clone for JobResult
[src]
impl Debug for JobResult
[src]
impl<'de> Deserialize<'de> for JobResult
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<'_> From<&'_ Job> for JobResult
[src]
impl From<Job> for JobResult
[src]
impl ParametersContainer for JobResult
[src]
fn get_parameters(&self) -> &Vec<Parameter>
[src]
fn get_parameter<T: DeserializeOwned>(&self, key: &str) -> Result<T> where
T: ParameterValue,
[src]
T: ParameterValue,
fn get_parameters_as_map(&self) -> HashMap<String, String>
[src]
impl PartialEq<JobResult> for JobResult
[src]
impl Serialize for JobResult
[src]
Auto Trait Implementations
impl RefUnwindSafe for JobResult
impl Send for JobResult
impl Sync for JobResult
impl Unpin for JobResult
impl UnwindSafe for JobResult
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,