From c7f873f904617c201e359196717eb2133d91cef5 Mon Sep 17 00:00:00 2001 From: Niko PLP Date: Fri, 17 May 2024 08:35:50 +0300 Subject: [PATCH] adding serde to the data model: triple --- lib/oxrdf/src/triple.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/oxrdf/src/triple.rs b/lib/oxrdf/src/triple.rs index a27057b2..3478f56d 100644 --- a/lib/oxrdf/src/triple.rs +++ b/lib/oxrdf/src/triple.rs @@ -778,7 +778,7 @@ impl<'a> From> for Term { /// ); /// # Result::<_,oxrdf::IriParseError>::Ok(()) /// ``` -#[derive(Eq, PartialEq, Debug, Clone, Hash)] +#[derive(Eq, PartialEq, Debug, Clone, Hash, Serialize, Deserialize)] pub struct Triple { /// The [subject](https://www.w3.org/TR/rdf11-concepts/#dfn-subject) of this triple. pub subject: Subject, @@ -1147,7 +1147,7 @@ impl<'a> From> for GraphName { /// ); /// # Result::<_,oxrdf::IriParseError>::Ok(()) /// ``` -#[derive(Eq, PartialEq, Debug, Clone, Hash)] +#[derive(Eq, PartialEq, Debug, Clone, Hash, Serialize, Deserialize)] pub struct Quad { /// The [subject](https://www.w3.org/TR/rdf11-concepts/#dfn-subject) of this triple. pub subject: Subject,