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§fn clone(&self) -> LastRunOptions
fn clone(&self) -> LastRunOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LastRunOptions
impl Debug for LastRunOptions
Source§impl Default for LastRunOptions
impl Default for LastRunOptions
Source§fn default() -> LastRunOptions
fn default() -> LastRunOptions
Returns the “default value” for a type. Read more
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