Struct ya_client_model::activity::runtime_event::RuntimeEvent
source · pub struct RuntimeEvent {
pub batch_id: String,
pub index: usize,
pub timestamp: NaiveDateTime,
pub kind: RuntimeEventKind,
}Fields§
§batch_id: String§index: usize§timestamp: NaiveDateTime§kind: RuntimeEventKindImplementations§
source§impl RuntimeEvent
impl RuntimeEvent
pub fn new(batch_id: String, index: usize, kind: RuntimeEventKind) -> Self
pub fn started(batch_id: String, idx: usize, command: ExeScriptCommand) -> Self
pub fn finished( batch_id: String, idx: usize, return_code: i32, message: Option<String> ) -> Self
pub fn stdout(batch_id: String, idx: usize, out: CommandOutput) -> Self
pub fn stderr(batch_id: String, idx: usize, out: CommandOutput) -> Self
Trait Implementations§
source§impl Clone for RuntimeEvent
impl Clone for RuntimeEvent
source§fn clone(&self) -> RuntimeEvent
fn clone(&self) -> RuntimeEvent
Returns a copy of the value. Read more
1.0.0 · 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 RuntimeEvent
impl Debug for RuntimeEvent
source§impl<'de> Deserialize<'de> for RuntimeEvent
impl<'de> Deserialize<'de> for RuntimeEvent
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
source§impl PartialEq for RuntimeEvent
impl PartialEq for RuntimeEvent
source§fn eq(&self, other: &RuntimeEvent) -> bool
fn eq(&self, other: &RuntimeEvent) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for RuntimeEvent
impl Serialize for RuntimeEvent
impl StructuralPartialEq for RuntimeEvent
Auto Trait Implementations§
impl RefUnwindSafe for RuntimeEvent
impl Send for RuntimeEvent
impl Sync for RuntimeEvent
impl Unpin for RuntimeEvent
impl UnwindSafe for RuntimeEvent
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