Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Get Shared Chat Session #446

Merged
merged 1 commit into from
Nov 3, 2024
Merged

Conversation

Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented Nov 3, 2024

Adds Get Shared Chat Session. I added a ZeroOrOne helper to deserialize an array that must contain zero or one item to a Option<T> (without going through a Vec<T> in the middle).

@Nerixyz Nerixyz force-pushed the feat/get-shared-chat-session branch from cec5cd6 to 0067d00 Compare November 3, 2024 20:34
@Nerixyz Nerixyz force-pushed the feat/get-shared-chat-session branch from 0067d00 to 0259714 Compare November 3, 2024 20:44
@@ -468,3 +468,44 @@ where
};
Ok(Response::with_data(resp, request))
}

/// A helper type to parse responses that contain either zero or one element in an array
pub(crate) struct ZeroOrOne<T>(pub Option<T>);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could probably sprinkle this in other places

@Nerixyz Nerixyz added this pull request to the merge queue Nov 3, 2024
Merged via the queue into main with commit 0c69728 Nov 3, 2024
19 checks passed
@Nerixyz Nerixyz deleted the feat/get-shared-chat-session branch November 3, 2024 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants