pub struct RelationshipLabel {
pub source_id: Uuid,
pub target_id: Uuid,
pub relationship_type: RelationshipType,
pub is_mule_link: bool,
pub is_shell_link: bool,
pub ownership_percent: Option<f64>,
pub transaction_count: u32,
pub transaction_volume: f64,
pub strength: f64,
pub case_id: Option<String>,
pub confidence: f64,
}Expand description
Relationship-level labels for ML training.
Fields§
§source_id: UuidSource entity ID
target_id: UuidTarget entity ID
relationship_type: RelationshipTypeRelationship type
is_mule_link: boolIs this a mule network link?
is_shell_link: boolIs this a shell company link?
ownership_percent: Option<f64>Ownership percentage (for UBO edges)
transaction_count: u32Number of transactions between entities
transaction_volume: f64Total transaction volume
strength: f64Relationship strength score (0.0-1.0)
case_id: Option<String>Associated case ID
confidence: f64Confidence score
Implementations§
Source§impl RelationshipLabel
impl RelationshipLabel
Sourcepub fn new(
source_id: Uuid,
target_id: Uuid,
relationship_type: RelationshipType,
) -> Self
pub fn new( source_id: Uuid, target_id: Uuid, relationship_type: RelationshipType, ) -> Self
Create a new relationship label.
Sourcepub fn as_mule_link(self) -> Self
pub fn as_mule_link(self) -> Self
Mark as mule link.
Sourcepub fn as_shell_link(self) -> Self
pub fn as_shell_link(self) -> Self
Mark as shell link.
Sourcepub fn with_ownership(self, percent: f64) -> Self
pub fn with_ownership(self, percent: f64) -> Self
Set ownership percentage.
Sourcepub fn with_transactions(self, count: u32, volume: f64) -> Self
pub fn with_transactions(self, count: u32, volume: f64) -> Self
Set transaction statistics.
Trait Implementations§
Source§impl Clone for RelationshipLabel
impl Clone for RelationshipLabel
Source§fn clone(&self) -> RelationshipLabel
fn clone(&self) -> RelationshipLabel
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 RelationshipLabel
impl Debug for RelationshipLabel
Source§impl<'de> Deserialize<'de> for RelationshipLabel
impl<'de> Deserialize<'de> for RelationshipLabel
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 RelationshipLabel
impl RefUnwindSafe for RelationshipLabel
impl Send for RelationshipLabel
impl Sync for RelationshipLabel
impl Unpin for RelationshipLabel
impl UnwindSafe for RelationshipLabel
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