[]Struct amqp_worker::job::JobResult

pub struct JobResult { /* fields omitted */ }

Methods

impl JobResult

pub fn new(job_id: u64) -> JobResult

pub fn with_status(self, status: JobStatus) -> Self

pub fn with_error(self, error: Error) -> Self

pub fn with_message(self, message: &str) -> Self

pub fn with_parameters(self, parameters: &mut Vec<Parameter>) -> Self

pub fn with_destination_paths(self, destination_paths: &mut Vec<String>) -> Self

pub fn get_job_id(&self) -> u64

pub fn get_str_job_id(&self) -> String

pub fn get_status(&self) -> &JobStatus

pub fn get_execution_duration(&self) -> f64

pub fn get_parameters(&self) -> &Vec<Parameter>

pub fn get_destination_paths(&self) -> &Vec<String>

pub fn update_execution_duration(&mut self)

Trait Implementations

impl Clone for JobResult

impl Debug for JobResult

impl<'de> Deserialize<'de> for JobResult

impl<'_> From<&'_ Job> for JobResult

impl From<Job> for JobResult

impl ParametersContainer for JobResult

impl PartialEq<JobResult> for JobResult

impl Serialize for JobResult

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.