pub struct JobConfig {
pub extension: Option<String>,
pub name: String,
pub owner: Option<UserId>,
pub enabled: bool,
pub schedule: Option<String>,
}Fields§
§extension: Option<String>§name: String§owner: Option<UserId>§enabled: bool§schedule: Option<String>Implementations§
Source§impl JobConfig
impl JobConfig
Sourcepub fn new(name: impl Into<String>) -> Self
pub fn new(name: impl Into<String>) -> Self
A job with no explicit owner runs as the profile system_admin,
resolved per-environment at scheduler start. Set one with
Self::with_owner only for a job that must run as a specific user.
pub fn with_owner(self, owner: UserId) -> Self
pub fn with_extension(self, extension: impl Into<String>) -> Self
pub fn with_schedule(self, schedule: impl Into<String>) -> Self
pub const fn disabled(self) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JobConfig
impl<'de> Deserialize<'de> for JobConfig
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
Auto Trait Implementations§
impl Freeze for JobConfig
impl RefUnwindSafe for JobConfig
impl Send for JobConfig
impl Sync for JobConfig
impl Unpin for JobConfig
impl UnsafeUnpin for JobConfig
impl UnwindSafe for JobConfig
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