Skip to content

Commit 6be74f3

Browse files
committed
feat: implement Clone, PartialEq, Eq on types
1 parent 33f2167 commit 6be74f3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

webfinger-rs/src/types/request.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ use crate::{Error, Rel};
4646
/// }
4747
/// ```
4848
#[serde_as]
49-
#[derive(Debug, Deserialize, Serialize)]
49+
#[derive(Debug, Deserialize, Serialize, Clone, PartialEq, Eq)]
5050
pub struct Request {
5151
/// Query target.
5252
///

webfinger-rs/src/types/response.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ use crate::Rel;
5353
/// }
5454
/// ```
5555
#[skip_serializing_none]
56-
#[derive(Serialize, Deserialize)]
56+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq)]
5757
pub struct Response {
5858
/// The subject of the response.
5959
///
@@ -204,7 +204,7 @@ impl Debug for Response {
204204
///
205205
/// Defined in [RFC 7033 Section 4.4](https://www.rfc-editor.org/rfc/rfc7033.html#section-4.4.4)
206206
#[skip_serializing_none]
207-
#[derive(Serialize, Deserialize)]
207+
#[derive(Serialize, Deserialize, Clone, PartialEq, Eq)]
208208
pub struct Link {
209209
/// The relation type of the link.
210210
///
@@ -375,7 +375,7 @@ impl Debug for Link {
375375
///
376376
/// let title = Title::new("en-us", "Carol's Profile");
377377
/// ```
378-
#[derive(Debug, Serialize, Deserialize)]
378+
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Eq)]
379379
pub struct Title {
380380
/// The language of the title.
381381
///

0 commit comments

Comments
 (0)