Struct msp::BedrockServer

source ·
pub struct BedrockServer {
    pub edition: String,
    pub motd_line_1: String,
    pub protocol_version: i32,
    pub version_name: String,
    pub online_players: i32,
    pub max_players: i32,
    pub server_id: String,
    pub motd_line_2: String,
    pub game_mode: String,
    pub game_mode_id: u8,
    pub port_ipv4: u16,
    pub port_ipv6: u16,
}
Expand description

Bedrock server info type.

For the meaning of motd_line_1 and motd_line_2 refer to the following examples and images:

motd_line_1 = "Dedicated Server"
motd_line_2 = "Bedrock level"

Result:

Server ID String Example.png

Fields§

§edition: String

MCPE or MCEE(Education Edition) for Education Edition

§motd_line_1: String

MOTD line 1 for upstream display.

§protocol_version: i32

Protocol version.

§version_name: String

Version name.

§online_players: i32

Online players.

§max_players: i32

Max players.

§server_id: String

Server unique id.

§motd_line_2: String

MOTD line 2 for downstream display.

§game_mode: String

Game mode.

§game_mode_id: u8

Game mode id.

§port_ipv4: u16

Ports required to connect to the server using IPv4.

§port_ipv6: u16

Ports required to connect to the server using IPv6.

Trait Implementations§

source§

impl Debug for BedrockServer

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for BedrockServer

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Serialize for BedrockServer

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.