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,