chunkedge_protocol/packets/play/
custom_chat_completions_s2c.rs

1use std::borrow::Cow;
2
3use chunkedge_binary::{Decode, Encode};
4
5use crate::Packet;
6
7#[derive(Clone, Debug, Encode, Decode, Packet)]
8pub struct CustomChatCompletionsS2c<'a> {
9    pub action: ChatSuggestionsAction,
10    pub entries: Cow<'a, [&'a str]>,
11}
12
13#[derive(Copy, Clone, PartialEq, Eq, Debug, Encode, Decode)]
14pub enum ChatSuggestionsAction {
15    Add,
16    Remove,
17    Set,
18}