[−]Struct amqp_worker::job::Job
Fields
job_id: u64
parameters: Vec<Parameter>
Methods
impl Job
pub fn new(message: &str) -> Result<Self, MessageError>
pub fn check_requirements(&self) -> Result<(), MessageError>
Trait Implementations
impl Clone for Job
fn clone(&self) -> Job
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Job
impl<'de> Deserialize<'de> for Job
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 Job
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 Serialize for Job
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
__S: Serializer,
Auto Trait Implementations
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnwindSafe for Job
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>,