[−]Struct amqp_worker::job::JobResult
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
fn clone(&self) -> JobResult
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for JobResult
impl<'de> Deserialize<'de> for JobResult
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
__D: Deserializer<'de>,
impl<'_> From<&'_ Job> for JobResult
impl From<Job> for JobResult
impl ParametersContainer for JobResult
fn get_parameters(&self) -> &Vec<Parameter>
fn get_boolean_parameter(&self, key: &str) -> Option<bool>
fn get_credential_parameter(&self, key: &str) -> Option<Credential>
fn get_integer_parameter(&self, key: &str) -> Option<i64>
fn get_string_parameter(&self, key: &str) -> Option<String>
fn get_array_of_strings_parameter(&self, key: &str) -> Option<Vec<String>>
fn get_parameters_as_map(&self) -> HashMap<String, String>
impl PartialEq<JobResult> for JobResult
impl Serialize for JobResult
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
__S: Serializer,
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[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.
fn to_owned(&self) -> T
[src]
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.
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>,