1
2
3
4
5
6
7
8
9
10
11
12
13
use std::borrow::Cow;

use valence_text::Text;

use crate::{Bounded, Decode, Encode, Packet};

#[derive(Clone, PartialEq, Debug, Encode, Decode, Packet)]
pub struct ResourcePackSendS2c<'a> {
    pub url: &'a str,
    pub hash: Bounded<&'a str, 40>,
    pub forced: bool,
    pub prompt_message: Option<Cow<'a, Text>>,
}