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>,
}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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for JobView
Source§impl Message for JobView
impl Message for JobView
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl StructuralPartialEq for JobView
Auto Trait Implementations§
impl Freeze for JobView
impl RefUnwindSafe for JobView
impl Send for JobView
impl Sync for JobView
impl Unpin for JobView
impl UnsafeUnpin for JobView
impl UnwindSafe for JobView
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more