Skip to content

Commit 3ee730d

Browse files
authored
chore: derive PartialEq, Eq, Hash on stringy newtypes (#191)
1 parent cd733fb commit 3ee730d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1836,7 +1836,7 @@ impl TryFrom<api::ReadSessionResponse> for ReadOutput {
18361836
///
18371837
/// Must be between 8 and 48 characters in length. Must comprise lowercase
18381838
/// letters, numbers, and hyphens. Cannot begin or end with a hyphen.
1839-
#[derive(Debug, Clone)]
1839+
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
18401840
pub struct BasinName(String);
18411841

18421842
impl Deref for BasinName {
@@ -1894,7 +1894,7 @@ impl From<BasinName> for String {
18941894

18951895
/// Access token ID.
18961896
/// Must be between 1 and 96 characters.
1897-
#[derive(Debug, Clone)]
1897+
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
18981898
pub struct AccessTokenId(String);
18991899

19001900
impl Deref for AccessTokenId {

0 commit comments

Comments
 (0)