pub struct Run { /* private fields */ }
Implementations§
Source§impl Run
impl Run
Sourcepub fn new(
repo_id: RepoId,
name: &str,
whence: Whence,
timestamp: String,
) -> Self
pub fn new( repo_id: RepoId, name: &str, whence: Whence, timestamp: String, ) -> Self
Create a new run.
Sourcepub fn repo_alias(&self) -> &str
pub fn repo_alias(&self) -> &str
Return the repo alias.
Sourcepub fn broker_run_id(&self) -> &RunId
pub fn broker_run_id(&self) -> &RunId
Return the run id assigned by the CI broker itself. This always exists.
Sourcepub fn set_adapter_run_id(&mut self, run_id: RunId)
pub fn set_adapter_run_id(&mut self, run_id: RunId)
Set the run id assigned by the adapter.
Sourcepub fn adapter_run_id(&self) -> Option<&RunId>
pub fn adapter_run_id(&self) -> Option<&RunId>
Return the run id assigned by the adapter, if any.
Sourcepub fn set_adapter_info_url(&mut self, info_url: &str)
pub fn set_adapter_info_url(&mut self, info_url: &str)
Set the info URL reported by the adapter.
Sourcepub fn adapter_info_url(&self) -> Option<&str>
pub fn adapter_info_url(&self) -> Option<&str>
Return the info URL if any.
Sourcepub fn set_result(&mut self, result: RunResult)
pub fn set_result(&mut self, result: RunResult)
Set the result of the CI run.
Sourcepub fn unset_result(&mut self)
pub fn unset_result(&mut self)
Unset result of the CI run.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Run
impl<'de> Deserialize<'de> for Run
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 Eq for Run
impl StructuralPartialEq for Run
Auto Trait Implementations§
impl Freeze for Run
impl RefUnwindSafe for Run
impl Send for Run
impl Sync for Run
impl Unpin for Run
impl UnwindSafe for Run
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.