lattice-sdk 0.1.0

Rust SDK for Lattice API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub use crate::prelude::*;

/// The relationship component indicates a relationship to another entity.
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
pub struct Relationship {
    /// The entity ID to which this entity is related.
    #[serde(rename = "relatedEntityId")]
    #[serde(skip_serializing_if = "Option::is_none")]
    pub related_entity_id: Option<String>,
    /// A unique identifier for this relationship. Allows removing or updating relationships.
    #[serde(rename = "relationshipId")]
    #[serde(skip_serializing_if = "Option::is_none")]
    pub relationship_id: Option<String>,
    /// The relationship type
    #[serde(rename = "relationshipType")]
    #[serde(skip_serializing_if = "Option::is_none")]
    pub relationship_type: Option<RelationshipType>,
}