Add Eq derives.

This commit is contained in:
Bauke 2022-10-01 01:00:34 +02:00
parent 243750ff5f
commit fc2503e752
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 28 additions and 4 deletions

View File

@ -57,7 +57,7 @@ pub enum Error {
/// The top-level [`OPML`] element. /// The top-level [`OPML`] element.
#[derive( #[derive(
XmlWrite, XmlRead, PartialEq, Debug, Clone, Serialize, Deserialize, XmlWrite, XmlRead, PartialEq, Eq, Debug, Clone, Serialize, Deserialize,
)] )]
#[xml(tag = "opml")] #[xml(tag = "opml")]
pub struct OPML { pub struct OPML {
@ -229,7 +229,15 @@ impl Default for OPML {
/// The [`Head`] child element of [`OPML`]. Contains the metadata of the OPML /// The [`Head`] child element of [`OPML`]. Contains the metadata of the OPML
/// document. /// document.
#[derive( #[derive(
XmlWrite, XmlRead, PartialEq, Debug, Clone, Default, Serialize, Deserialize, XmlWrite,
XmlRead,
PartialEq,
Eq,
Debug,
Clone,
Default,
Serialize,
Deserialize,
)] )]
#[xml(tag = "head")] #[xml(tag = "head")]
pub struct Head { pub struct Head {
@ -294,7 +302,15 @@ pub struct Head {
/// The [`Body`] child element of [`OPML`]. Contains all the [`Outline`] /// The [`Body`] child element of [`OPML`]. Contains all the [`Outline`]
/// elements. /// elements.
#[derive( #[derive(
XmlWrite, XmlRead, PartialEq, Debug, Clone, Default, Serialize, Deserialize, XmlWrite,
XmlRead,
PartialEq,
Eq,
Debug,
Clone,
Default,
Serialize,
Deserialize,
)] )]
#[xml(tag = "body")] #[xml(tag = "body")]
pub struct Body { pub struct Body {
@ -305,7 +321,15 @@ pub struct Body {
/// The [`Outline`] element. /// The [`Outline`] element.
#[derive( #[derive(
XmlWrite, XmlRead, PartialEq, Debug, Clone, Default, Serialize, Deserialize, XmlWrite,
XmlRead,
PartialEq,
Eq,
Debug,
Clone,
Default,
Serialize,
Deserialize,
)] )]
#[xml(tag = "outline")] #[xml(tag = "outline")]
pub struct Outline { pub struct Outline {