chunkedge_protocol/packets/play/store_cookie_s2c.rs
1use std::borrow::Cow;
2
3use chunkedge_binary::{Bounded, Decode, Encode};
4use chunkedge_ident::Ident;
5
6use crate::Packet;
7
8#[derive(Clone, Debug, Encode, Decode, Packet)]
9/// Stores a cookie on the client
10pub struct StoreCookieS2c<'a> {
11 pub key: Ident<Cow<'a, str>>,
12 pub payload: Bounded<&'a [u8], 5120>,
13}