chore: move to crates folder

This commit is contained in:
Alexander Medvedev committed 2026-08-06 12:56:40 +02:00
1 parent 5d10c0d8a8
commit cb3660bcd2
3393 files changed
+1270 -741

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
use serde::{Deserialize, Serialize};
use uuid::Uuid;
/// Represents an entry in the server whitelist.
///
/// Stores the player's UUID and username.
#[derive(Debug, Serialize, Deserialize, PartialEq, Eq)]
pub struct WhitelistEntry {
/// The UUID of the whitelisted player.
pub uuid: Uuid,
/// The username of the whitelisted player.
pub name: String,
}
impl WhitelistEntry {
/// Creates a new whitelist entry with the given UUID and name.
///
/// # Arguments
/// * `uuid` – The UUID of the player.
/// * `name` – The username of the player.
#[must_use]
pub const fn new(uuid: Uuid, name: String) -> Self {
Self { uuid, name }
}
}