#[non_exhaustive]pub struct JavaServerInfo {
pub version: Option<ServerVersion>,
pub players: Option<ServerPlayers>,
pub description: TextComponent,
pub favicon: Option<String>,
pub mod_info: Option<ServerModInfo>,
pub prevents_chat_reports: Option<bool>,
pub previews_chat: Option<bool>,
pub enforces_secure_chat: Option<bool>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.version: Option<ServerVersion>
§players: Option<ServerPlayers>
§description: TextComponent
§favicon: Option<String>
§mod_info: Option<ServerModInfo>
§prevents_chat_reports: Option<bool>
Servers with the No Chat Reports mod installed will set this field to true
to indicate
to players that all chat messages sent on this server are not reportable to Mojang.
previews_chat: Option<bool>
If the server supports Chat Preview (added in 1.19 and removed in 1.19.3), this field is set to true
.
enforces_secure_chat: Option<bool>
Servers will set this field to true
if they block chat messages that cannot be reported to Mojang.
Trait Implementations§
Source§impl Clone for JavaServerInfo
impl Clone for JavaServerInfo
Source§fn clone(&self) -> JavaServerInfo
fn clone(&self) -> JavaServerInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for JavaServerInfo
impl Debug for JavaServerInfo
Source§impl<'de> Deserialize<'de> for JavaServerInfo
impl<'de> Deserialize<'de> for JavaServerInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<BedrockServerInfo> for JavaServerInfo
impl From<BedrockServerInfo> for JavaServerInfo
Source§fn from(value: BedrockServerInfo) -> Self
fn from(value: BedrockServerInfo) -> Self
Converts to this type from the input type.
Source§impl FromStr for JavaServerInfo
impl FromStr for JavaServerInfo
Source§impl Hash for JavaServerInfo
impl Hash for JavaServerInfo
Source§impl PartialEq for JavaServerInfo
impl PartialEq for JavaServerInfo
Source§impl Serialize for JavaServerInfo
impl Serialize for JavaServerInfo
impl Eq for JavaServerInfo
impl StructuralPartialEq for JavaServerInfo
Auto Trait Implementations§
impl Freeze for JavaServerInfo
impl RefUnwindSafe for JavaServerInfo
impl Send for JavaServerInfo
impl Sync for JavaServerInfo
impl Unpin for JavaServerInfo
impl UnwindSafe for JavaServerInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more