pub struct PipelineData {
pub id: PipelineId,
pub name: String,
pub archived: bool,
pub configuration: HashMap<String, String>,
pub metrics: ProcessingMetrics,
pub stages: Vec<PipelineStage>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
Data Transfer Object for reconstituting a Pipeline from database storage.
This DTO represents the raw database row structure and is used by repository implementations to reconstruct Pipeline entities. It separates database representation from domain logic, following the Repository pattern.
§Usage
This DTO is typically created by repository implementations when fetching
data from the database, then passed to Pipeline::from_database() to
create a domain entity.
Fields§
§id: PipelineId§name: String§archived: bool§configuration: HashMap<String, String>§metrics: ProcessingMetrics§stages: Vec<PipelineStage>§created_at: DateTime<Utc>§updated_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for PipelineData
impl Clone for PipelineData
Source§fn clone(&self) -> PipelineData
fn clone(&self) -> PipelineData
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 moreAuto Trait Implementations§
impl Freeze for PipelineData
impl RefUnwindSafe for PipelineData
impl Send for PipelineData
impl Sync for PipelineData
impl Unpin for PipelineData
impl UnwindSafe for PipelineData
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