pub struct RustGraphEdgeMetadata {
pub source: String,
pub generated_at: DateTime<Utc>,
pub weight: Option<f64>,
pub valid_from: Option<NaiveDateTime>,
pub valid_to: Option<NaiveDateTime>,
pub labels: HashMap<String, String>,
pub features: Option<Vec<f64>>,
pub is_directed: bool,
pub is_anomaly: bool,
pub anomaly_type: Option<String>,
pub batch_id: Option<String>,
}Expand description
Metadata for a RustGraph edge.
Fields§
§source: StringSource system identifier.
generated_at: DateTime<Utc>Generation timestamp.
weight: Option<f64>Edge weight (e.g., transaction amount).
valid_from: Option<NaiveDateTime>Valid time start (business time).
valid_to: Option<NaiveDateTime>Valid time end (business time).
labels: HashMap<String, String>Custom labels for classification.
features: Option<Vec<f64>>Numeric feature vector for ML.
is_directed: boolWhether edge is directed.
is_anomaly: boolWhether this edge is an anomaly.
anomaly_type: Option<String>Anomaly type if anomalous.
batch_id: Option<String>Batch identifier for grouping.
Trait Implementations§
Source§impl Clone for RustGraphEdgeMetadata
impl Clone for RustGraphEdgeMetadata
Source§fn clone(&self) -> RustGraphEdgeMetadata
fn clone(&self) -> RustGraphEdgeMetadata
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 RustGraphEdgeMetadata
impl Debug for RustGraphEdgeMetadata
Source§impl<'de> Deserialize<'de> for RustGraphEdgeMetadata
impl<'de> Deserialize<'de> for RustGraphEdgeMetadata
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 RustGraphEdgeMetadata
impl RefUnwindSafe for RustGraphEdgeMetadata
impl Send for RustGraphEdgeMetadata
impl Sync for RustGraphEdgeMetadata
impl Unpin for RustGraphEdgeMetadata
impl UnwindSafe for RustGraphEdgeMetadata
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