RunCreate#

pub struct RunCreate#

Parameters for creating a new run.

Implementations#

impl RunCreate
pub fn new(name: impl Into<String>, start: DateTime<Utc>) -> Self#

A run requires at minimum a name and a start time.

pub fn description(self, value: impl Into<String>) -> Self#
pub fn end(self, value: DateTime<Utc>) -> Self#
pub fn properties<I, K, V>(self, value: I) -> Self where I: IntoIterator<Item = (K, V)>, K: Into<String>, V: Into<String>#
pub fn labels<I>(self, value: I) -> Self where I: IntoIterator, I::Item: Into<String>#
pub fn assets<I, S>(self, value: I) -> Self where I: IntoIterator<Item = S>, S: Into<String>#

Asset RIDs to associate this run with.

Trait implementations#

Derived: Debug, Clone

Auto traits: Send, Sync, Unpin, UnwindSafe, RefUnwindSafe