Struct robin::job::Args
[−]
[src]
pub struct Args { /* fields omitted */ }
A type that holds serialized job arguments.
Methods
impl Args
[src]
pub fn json(&self) -> &str
[src]
Get the JSON
pub fn to_json(&self) -> RobinResult<String>
[src]
Convert into string encoded JSON.
pub fn deserialize<'a, T: Deserialize<'a>>(&'a self) -> RobinResult<T>
[src]
Generic function for deserializing the encoded arguments into the type required by the job.
Will return Err(Error::SerdeJsonError(_))
if deserialization fails.
This will most likely happen if a given job doesn't support the arguments type you're
trying to deserialize into.