pub struct JobView {
pub id: String,
pub label: String,
pub script: Option<String>,
pub cron: Option<String>,
pub every_secs: u64,
pub running: bool,
pub runs: u32,
pub last_started: Option<String>,
pub last_finished: Option<String>,
pub last_result: Option<String>,
pub last_error: Option<String>,
pub next_run: Option<String>,
}Expand description
Every shape at the root as well, because a window names a view on nearly
every line and arvo_api::research::StudyView would be noise. The names
do not collide: proto has no overloading and neither does this.
Every shape at the root as well, because a window names a view on nearly
every line and arvo_api::research::StudyView would be noise. The names
do not collide: proto has no overloading and neither does this.
Every shape at the root as well, because a window names a view on nearly
every line and arvo_api::research::StudyView would be noise. The names
do not collide: proto has no overloading and neither does this.
Fields§
§id: String§label: String§script: Option<String>The project script this job runs, when it is a scheduled script
rather than one of the runtime’s own. None for a built-in.
cron: Option<String>The cron expression it runs on, as the person wrote it. None for a
job on a fixed interval, where every_secs is the cadence.
every_secs: u64§running: bool§runs: u32§last_started: Option<String>§last_finished: Option<String>§last_result: Option<String>One line from the last run that succeeded.
last_error: Option<String>Why the last run failed, when it did.
next_run: Option<String>Implementations§
Source§impl JobView
impl JobView
Sourcepub fn script(&self) -> &str
pub fn script(&self) -> &str
Returns the value of script, or the default value if script is unset.
Sourcepub fn last_started(&self) -> &str
pub fn last_started(&self) -> &str
Returns the value of last_started, or the default value if last_started is unset.
Sourcepub fn last_finished(&self) -> &str
pub fn last_finished(&self) -> &str
Returns the value of last_finished, or the default value if last_finished is unset.
Sourcepub fn last_result(&self) -> &str
pub fn last_result(&self) -> &str
Returns the value of last_result, or the default value if last_result is unset.
Sourcepub fn last_error(&self) -> &str
pub fn last_error(&self) -> &str
Returns the value of last_error, or the default value if last_error is unset.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JobView
impl<'de> Deserialize<'de> for JobView
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for JobView
Source§impl Message for JobView
impl Message for JobView
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.