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: Stringindex: usizetimestamp: NaiveDateTimekind: RuntimeEventKindImplementations
sourceimpl 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
sourceimpl Clone for RuntimeEvent
impl Clone for RuntimeEvent
sourcefn clone(&self) -> RuntimeEvent
fn clone(&self) -> RuntimeEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for RuntimeEvent
impl Debug for RuntimeEvent
sourceimpl<'de> Deserialize<'de> for RuntimeEvent
impl<'de> Deserialize<'de> for RuntimeEvent
sourcefn 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
sourceimpl PartialEq<RuntimeEvent> for RuntimeEvent
impl PartialEq<RuntimeEvent> for RuntimeEvent
sourcefn 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 ==. Read more
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more