mc_launchermeta/version/
logging.rs

1////////////////////////////////////////////////////////////////////////////////
2// Copyright (c) 2023. Rob Bailey                                              /
3// This Source Code Form is subject to the terms of the Mozilla Public         /
4// License, v. 2.0. If a copy of the MPL was not distributed with this         /
5// file, You can obtain one at https://mozilla.org/MPL/2.0/.                   /
6////////////////////////////////////////////////////////////////////////////////
7
8
9//! Some kind of information about logging, seemingly used to inform log4j about the logging
10//!
11//! I am unsure how this is used.
12
13use serde::{Deserialize, Serialize};
14
15#[derive(Debug, Clone, Eq, PartialEq, Hash, Serialize, Deserialize)]
16#[serde(deny_unknown_fields)]
17pub struct FileInfo {
18    pub id: String,
19    pub sha1: String,
20    pub size: u64,
21    pub url: String,
22}
23
24#[derive(Debug, Clone, Eq, PartialEq, Hash, Serialize, Deserialize)]
25#[serde(deny_unknown_fields)]
26pub struct Entry {
27    pub argument: String,
28    pub file: FileInfo,
29    #[serde(rename = "type")]
30    pub kind: String,
31}
32
33#[derive(Debug, Clone, Eq, PartialEq, Hash, Serialize, Deserialize)]
34#[serde(deny_unknown_fields)]
35pub struct Logging {
36    pub client: Entry,
37}