This commit is contained in:
Elijah McMorris 2023-12-15 07:38:39 +00:00
parent 7bf0033970
commit 44b66d43c1
Signed by: NexVeridian
SSH key fingerprint: SHA256:bsA1SKZxuEcEVHAy3gY1HUeM5ykRJl0U0kQHQn0hMg8
7 changed files with 164 additions and 5 deletions

View file

@ -31,18 +31,21 @@ impl ClaimData {
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Claims {
// Table: Claims
pub id: Option<Thing>,
pub claims: Vec<Claim>,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Claim {
// Table: Claim
pub id: Thing,
pub value: ClaimData,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct EntityMini {
// Table: Entity, Property, Lexeme
pub id: Option<Thing>,
pub label: String,
pub claims: Thing,