pub struct ExecutionStatus {
pub pipeline_id: PipelineId,
pub status: ExecutionState,
pub progress_percentage: f64,
pub bytes_processed: u64,
pub bytes_total: u64,
pub current_stage: Option<String>,
pub estimated_remaining_time: Option<Duration>,
pub error_count: u64,
pub warning_count: u64,
pub started_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
Pipeline execution status
Fields§
§pipeline_id: PipelineId§status: ExecutionState§progress_percentage: f64§bytes_processed: u64§bytes_total: u64§current_stage: Option<String>§estimated_remaining_time: Option<Duration>§error_count: u64§warning_count: u64§started_at: DateTime<Utc>§updated_at: DateTime<Utc>Implementations§
Source§impl ExecutionStatus
impl ExecutionStatus
Sourcepub fn new(pipeline_id: PipelineId, bytes_total: u64) -> Self
pub fn new(pipeline_id: PipelineId, bytes_total: u64) -> Self
Creates new execution status
Sourcepub fn update(
&mut self,
metrics: &ProcessingMetrics,
current_stage: Option<String>,
)
pub fn update( &mut self, metrics: &ProcessingMetrics, current_stage: Option<String>, )
Updates the execution status
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Checks if execution is complete
Trait Implementations§
Source§impl Clone for ExecutionStatus
impl Clone for ExecutionStatus
Source§fn clone(&self) -> ExecutionStatus
fn clone(&self) -> ExecutionStatus
Returns a duplicate 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 ExecutionStatus
impl Debug for ExecutionStatus
Source§impl<'de> Deserialize<'de> for ExecutionStatus
impl<'de> Deserialize<'de> for ExecutionStatus
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
Auto Trait Implementations§
impl Freeze for ExecutionStatus
impl RefUnwindSafe for ExecutionStatus
impl Send for ExecutionStatus
impl Sync for ExecutionStatus
impl Unpin for ExecutionStatus
impl UnwindSafe for ExecutionStatus
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more