valence_protocol/packets/login/
login_success_s2c.rs

1use std::borrow::Cow;
2
3use uuid::Uuid;
4
5use crate::profile::Property;
6use crate::{Bounded, Decode, Encode, Packet, PacketState};
7
8#[derive(Clone, Debug, Encode, Decode, Packet)]
9#[packet(state = PacketState::Login)]
10pub struct LoginSuccessS2c<'a> {
11    pub uuid: Uuid,
12    pub username: Bounded<&'a str, 16>,
13    pub properties: Cow<'a, [Property<&'a str>]>,
14}