pub struct LineageEvent {
pub id: String,
pub event_type: String,
pub timestamp: DateTime<Utc>,
pub inputs: Vec<String>,
pub outputs: Vec<String>,
pub operation: Option<String>,
pub agent: Option<String>,
pub metadata: HashMap<String, String>,
}Expand description
Lineage event for tracking operations.
Fields§
§id: StringEvent ID.
event_type: StringEvent type.
timestamp: DateTime<Utc>Timestamp.
inputs: Vec<String>Input nodes.
outputs: Vec<String>Output nodes.
operation: Option<String>Operation node.
agent: Option<String>Agent (user/service).
metadata: HashMap<String, String>Event metadata.
Implementations§
Source§impl LineageEvent
impl LineageEvent
Sourcepub fn with_input(self, input_id: String) -> Self
pub fn with_input(self, input_id: String) -> Self
Add input.
Sourcepub fn with_output(self, output_id: String) -> Self
pub fn with_output(self, output_id: String) -> Self
Add output.
Sourcepub fn with_operation(self, operation_id: String) -> Self
pub fn with_operation(self, operation_id: String) -> Self
Set operation.
Sourcepub fn with_agent(self, agent_id: String) -> Self
pub fn with_agent(self, agent_id: String) -> Self
Set agent.
Sourcepub fn with_metadata(self, key: String, value: String) -> Self
pub fn with_metadata(self, key: String, value: String) -> Self
Add metadata.
Trait Implementations§
Source§impl Clone for LineageEvent
impl Clone for LineageEvent
Source§fn clone(&self) -> LineageEvent
fn clone(&self) -> LineageEvent
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 LineageEvent
impl Debug for LineageEvent
Source§impl<'de> Deserialize<'de> for LineageEvent
impl<'de> Deserialize<'de> for LineageEvent
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 LineageEvent
impl RefUnwindSafe for LineageEvent
impl Send for LineageEvent
impl Sync for LineageEvent
impl Unpin for LineageEvent
impl UnsafeUnpin for LineageEvent
impl UnwindSafe for LineageEvent
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