chunkedge_protocol/packets/login/
custom_query_answer_c2s.rs

1use chunkedge_binary::{Bounded, Decode, Encode, RawBytes, VarInt};
2
3use crate::{Packet, PacketState};
4
5#[derive(Clone, Debug, Encode, Decode, Packet)]
6#[packet(state = PacketState::Login)]
7/// Sent by the client to the server in response to a
8/// [`CustomQueryS2c`](crate::packets::login::CustomQueryS2c) packet.
9pub struct CustomQueryAnswerC2s<'a> {
10    pub message_id: VarInt,
11    pub data: Option<Bounded<RawBytes<'a>, 1048576>>,
12}