[][src]Struct mcai_worker_sdk::job::Job

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

Fields

job_id: u64parameters: Vec<Parameter>

Implementations

impl Job[src]

pub fn new(message: &str) -> Result<Self>[src]

pub fn get_parameters<P: Sized + DeserializeOwned>(&self) -> Result<P>[src]

pub fn check_requirements(&self) -> Result<()>[src]

Trait Implementations

impl Clone for Job[src]

impl Debug for Job[src]

impl<'de> Deserialize<'de> for Job[src]

impl<'_> From<&'_ Job> for JobResult[src]

impl From<Job> for JobResult[src]

impl ParametersContainer for Job[src]

impl Serialize for Job[src]

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: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,