pub struct LastRunOptions {
pub status: Option<String>,
pub origin: Option<String>,
}Expand description
Options for fetching an Actor’s or task’s last run
(crate::clients::actor::ActorClient::last_run_with_options /
crate::clients::task::TaskClient::last_run_with_options).
Both are sent as query parameters to the last-run endpoints
(GET /v2/actors/{actorId}/runs/last, GET /v2/actor-tasks/{actorTaskId}/runs/last).
status and origin are both documented optional filters on those endpoints and match the
reference client’s lastRun({ status, origin }).
Fields§
§status: Option<String>Filter by run status (e.g. "SUCCEEDED", "FAILED", "RUNNING"). None leaves it
unfiltered.
origin: Option<String>Filter by how the run was started; accepted values are the platform’s run origins
(e.g. "DEVELOPMENT", "WEB", "API", "SCHEDULER"). None leaves it unfiltered.
Trait Implementations§
Source§impl Clone for LastRunOptions
impl Clone for LastRunOptions
Source§impl Debug for LastRunOptions
impl Debug for LastRunOptions
Auto Trait Implementations§
impl Freeze for LastRunOptions
impl RefUnwindSafe for LastRunOptions
impl Send for LastRunOptions
impl Sync for LastRunOptions
impl Unpin for LastRunOptions
impl UnsafeUnpin for LastRunOptions
impl UnwindSafe for LastRunOptions
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