valence_protocol/packets/play/resource_pack_send_s2c.rs
1use std::borrow::Cow;
2
3use valence_text::Text;
4
5use crate::{Bounded, Decode, Encode, Packet};
6
7#[derive(Clone, PartialEq, Debug, Encode, Decode, Packet)]
8pub struct ResourcePackSendS2c<'a> {
9 pub url: &'a str,
10 pub hash: Bounded<&'a str, 40>,
11 pub forced: bool,
12 pub prompt_message: Option<Cow<'a, Text>>,
13}