derive Eq for Issue
This commit is contained in:
parent
a6c8d299f5
commit
290922d296
7 changed files with 7 additions and 7 deletions
|
@ -5,7 +5,7 @@ use serde::{Deserialize, Serialize};
|
|||
use url::Url;
|
||||
|
||||
/// Represents a generic attachment.
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
|
||||
pub struct Attachment {
|
||||
/// The browser download URL of the attachment.
|
||||
pub browser_download_url: Url,
|
||||
|
|
|
@ -50,7 +50,7 @@ use crate::types::misc::boolean_enums::is::locked::IsLocked;
|
|||
use crate::types::misc::boolean_enums::state_type::StateType;
|
||||
|
||||
/// Represents an issue in a repository.
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
|
||||
pub struct Issue {
|
||||
/// List of attachments.
|
||||
pub assets: Vec<Attachment>,
|
||||
|
|
|
@ -7,7 +7,7 @@ use crate::types::misc::boolean_enums::is::exclusive::Exclusive;
|
|||
use crate::types::misc::color::Color;
|
||||
|
||||
/// Label represents a label attached to an issue or a PR.
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
|
||||
pub struct Label {
|
||||
/// The color of the label (in hexadecimal format).
|
||||
pub color: Color,
|
||||
|
|
|
@ -24,7 +24,7 @@ use serde::{Deserialize, Serialize};
|
|||
use crate::types::misc::boolean_enums::state_type::StateType;
|
||||
|
||||
/// Milestone represents a collection of issues on one repository.
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
|
||||
pub struct Milestone {
|
||||
/// The timestamp when the milestone was closed.
|
||||
pub closed_at: Option<DateTime<Utc>>,
|
||||
|
|
|
@ -4,7 +4,7 @@ use serde::{Deserialize, Serialize};
|
|||
use crate::types::misc::boolean_enums::is::merged::IsMerged;
|
||||
|
||||
/// PullRequestMeta represents PR information for an issue if it is a PR.
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
|
||||
pub struct PullRequestMeta {
|
||||
/// Indicates whether the PR is merged or not.
|
||||
pub merged: IsMerged,
|
||||
|
|
|
@ -3,7 +3,7 @@ use std::fmt::Display;
|
|||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// Represents basic repository information.
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
|
||||
pub struct RepositoryMeta {
|
||||
/// The full name of the repository.
|
||||
pub full_name: String,
|
||||
|
|
|
@ -6,7 +6,7 @@ use palette::Srgb;
|
|||
use serde::de::Visitor;
|
||||
use serde::{de::Error, Deserialize, Deserializer, Serialize, Serializer};
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct Color(pub(crate) Rgb<Srgb, u8>);
|
||||
|
||||
impl Display for Color {
|
||||
|
|
Loading…
Reference in a new issue