pub struct RunTask {
pub id: String,
pub name: String,
pub label: String,
pub command: String,
pub icon: TaskIcon,
pub url: Option<String>,
pub one_shot: bool,
pub finish: bool,
}Expand description
One command that Play can run.
Fields§
§id: StringStays the same between scans, so that the folder’s pick is kept.
name: StringWhat it runs, like the project’s name.
label: StringHow it runs it, like “Watch”.
command: String§icon: TaskIcon§url: Option<String>Where the app listens, for Open in Browser.
one_shot: boolEnds by itself, like a migration, so it runs next to the app instead of becoming what Play runs.
finish: boolTyped without pressing Return, for the user to finish, like a migration’s name.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunTask
impl<'de> Deserialize<'de> for RunTask
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 StructuralPartialEq for RunTask
Auto Trait Implementations§
impl Forget for RunTask
impl Freeze for RunTask
impl Move for RunTask
impl RefUnwindSafe for RunTask
impl Send for RunTask
impl Sync for RunTask
impl Unpin for RunTask
impl UnsafeUnpin for RunTask
impl UnwindSafe for RunTask
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