From e864d2653d50ba1c920776aaa14a1625c9fc9da4 Mon Sep 17 00:00:00 2001 From: Tolmachev Igor Date: Wed, 22 Oct 2025 17:00:28 +0300 Subject: Add invite tokens --- src/error/client.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/error/client.rs') diff --git a/src/error/client.rs b/src/error/client.rs index 9b2c89b..b678d66 100644 --- a/src/error/client.rs +++ b/src/error/client.rs @@ -10,6 +10,8 @@ pub enum ClientError { UserNotFound { id: i64 }, NotQueueOwner { id: i64 }, QueueNotFound { id: i64 }, + NoInviteTokenAccess { id: i64 }, + InviteTokenNotFound { id: i64 }, } impl ClientError { @@ -26,6 +28,8 @@ impl ClientError { Self::UserNotFound { .. } => "UserNotFound", Self::NotQueueOwner { .. } => "NotQueueOwner", Self::QueueNotFound { .. } => "QueueNotFound", + Self::NoInviteTokenAccess { .. } => "NoInviteTokenAccess", + Self::InviteTokenNotFound { .. } => "InviteTokenNotFound", } .to_string() } @@ -50,6 +54,10 @@ impl ClientError { format!("you are not the owner of the queue with id `{}`", id) } Self::QueueNotFound { id } => format!("queue with id `{}` not found", id), + Self::NoInviteTokenAccess { id } => { + format!("you don't have access to the invite token with id `{}`", id) + } + Self::InviteTokenNotFound { id } => format!("invite token with id `{}` not found", id), } } } -- cgit v1.2.3