pub struct GenericProcessingResult<I, O, M>where
I: Clone + Debug + Send + Sync + 'static,
O: Clone + Debug + Send + Sync + 'static,
M: Clone + Debug + Default + Send + Sync + 'static,{
pub input: I,
pub output: O,
pub metrics: M,
pub started_at: DateTime<Utc>,
pub completed_at: DateTime<Utc>,
pub success: bool,
pub error: Option<String>,
pub warnings: Vec<String>,
pub metadata: HashMap<String, String>,
}Expand description
Generic processing result that implements OperationResult
Fields§
§input: I§output: O§metrics: M§started_at: DateTime<Utc>§completed_at: DateTime<Utc>§success: bool§error: Option<String>§warnings: Vec<String>§metadata: HashMap<String, String>Trait Implementations§
Source§impl<I, O, M> Clone for GenericProcessingResult<I, O, M>
impl<I, O, M> Clone for GenericProcessingResult<I, O, M>
Source§fn clone(&self) -> GenericProcessingResult<I, O, M>
fn clone(&self) -> GenericProcessingResult<I, O, M>
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<I, O, M> Debug for GenericProcessingResult<I, O, M>
impl<I, O, M> Debug for GenericProcessingResult<I, O, M>
Source§impl<'de, I, O, M> Deserialize<'de> for GenericProcessingResult<I, O, M>
impl<'de, I, O, M> Deserialize<'de> for GenericProcessingResult<I, O, M>
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<I, O, M> OperationResult for GenericProcessingResult<I, O, M>
impl<I, O, M> OperationResult for GenericProcessingResult<I, O, M>
type Input = I
type Output = O
type Metrics = M
Source§fn new(input: Self::Input, output: Self::Output) -> Self
fn new(input: Self::Input, output: Self::Output) -> Self
Creates a new result with input and output
Source§fn with_metrics(self, metrics: Self::Metrics) -> Self
fn with_metrics(self, metrics: Self::Metrics) -> Self
Sets the metrics
Source§fn is_success(&self) -> bool
fn is_success(&self) -> bool
Checks if the operation was successful
Source§fn error(&self) -> Option<&PipelineError>
fn error(&self) -> Option<&PipelineError>
Gets any error information
Source§impl<I, O, M> Serialize for GenericProcessingResult<I, O, M>
impl<I, O, M> Serialize for GenericProcessingResult<I, O, M>
Auto Trait Implementations§
impl<I, O, M> Freeze for GenericProcessingResult<I, O, M>
impl<I, O, M> RefUnwindSafe for GenericProcessingResult<I, O, M>
impl<I, O, M> Send for GenericProcessingResult<I, O, M>
impl<I, O, M> Sync for GenericProcessingResult<I, O, M>
impl<I, O, M> Unpin for GenericProcessingResult<I, O, M>
impl<I, O, M> UnwindSafe for GenericProcessingResult<I, O, M>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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