[]Struct amqp_worker::job::Job

pub struct Job {
    pub job_id: u64,
    pub parameters: Vec<Parameter>,
}

Fields

job_id: u64parameters: 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

impl Debug for Job

impl<'de> Deserialize<'de> for Job

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

impl From<Job> for JobResult

impl ParametersContainer for Job

impl Serialize for Job

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]

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.