pub struct ScriptSchedule {
pub script: String,
pub every_secs: u64,
pub cron: Option<String>,
pub enabled: bool,
}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.
A cadence a person set for one of their scripts.
Fields§
§script: StringRelative to the project folder.
every_secs: u64The cadence when no cron expression is set. Kept either way, so switching to cron and back does not lose what the interval was.
cron: Option<String>A cron expression as the person wrote it. When set it decides when the
script runs and every_secs is not consulted.
enabled: boolImplementations§
Trait Implementations§
Source§impl Clone for ScriptSchedule
impl Clone for ScriptSchedule
Source§impl Debug for ScriptSchedule
impl Debug for ScriptSchedule
Source§impl Default for ScriptSchedule
impl Default for ScriptSchedule
Source§impl<'de> Deserialize<'de> for ScriptSchedule
impl<'de> Deserialize<'de> for ScriptSchedule
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 ScriptSchedule
Source§impl Hash for ScriptSchedule
impl Hash for ScriptSchedule
Source§impl Message for ScriptSchedule
impl Message for ScriptSchedule
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.Source§impl PartialEq for ScriptSchedule
impl PartialEq for ScriptSchedule
Source§impl Serialize for ScriptSchedule
impl Serialize for ScriptSchedule
impl StructuralPartialEq for ScriptSchedule
Auto Trait Implementations§
impl Freeze for ScriptSchedule
impl RefUnwindSafe for ScriptSchedule
impl Send for ScriptSchedule
impl Sync for ScriptSchedule
impl Unpin for ScriptSchedule
impl UnsafeUnpin for ScriptSchedule
impl UnwindSafe for ScriptSchedule
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