pub struct ActorStartOptions {
pub build: Option<String>,
pub memory_mbytes: Option<i64>,
pub timeout_secs: Option<i64>,
pub wait_for_finish: Option<i64>,
pub max_items: Option<i64>,
pub max_total_charge_usd: Option<f64>,
pub content_type: Option<String>,
pub restart_on_error: Option<bool>,
pub force_permission_level: Option<String>,
pub webhooks: Option<Vec<Value>>,
}Expand description
Options shared by ActorClient::start and ActorClient::call (and the task
equivalents).
Fields§
§build: Option<String>Tag or number of the build to run (e.g. latest, 0.1.2).
memory_mbytes: Option<i64>Memory in megabytes allocated for the run.
timeout_secs: Option<i64>Timeout for the run in seconds (0 means no timeout).
wait_for_finish: Option<i64>Maximum seconds to wait server-side for the run to finish (max 60).
max_items: Option<i64>Maximum number of dataset items to charge (pay-per-result Actors).
max_total_charge_usd: Option<f64>Maximum total charge in USD (pay-per-event Actors).
content_type: Option<String>Content type of the input body. Defaults to application/json.
restart_on_error: Option<bool>Whether to restart the run if it fails.
force_permission_level: Option<String>Override the Actor’s permission level for this run.
webhooks: Option<Vec<Value>>Ad-hoc webhooks to attach to this run. Serialized to base64-encoded JSON as the
webhooks query parameter, matching the reference clients.
Trait Implementations§
Source§impl Clone for ActorStartOptions
impl Clone for ActorStartOptions
Source§fn clone(&self) -> ActorStartOptions
fn clone(&self) -> ActorStartOptions
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 ActorStartOptions
impl Debug for ActorStartOptions
Source§impl Default for ActorStartOptions
impl Default for ActorStartOptions
Source§fn default() -> ActorStartOptions
fn default() -> ActorStartOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ActorStartOptions
impl RefUnwindSafe for ActorStartOptions
impl Send for ActorStartOptions
impl Sync for ActorStartOptions
impl Unpin for ActorStartOptions
impl UnsafeUnpin for ActorStartOptions
impl UnwindSafe for ActorStartOptions
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