pub struct PlayServerDifficultySpec {
pub difficulty: Difficulty,
pub locked: bool,
}
Fields§
§difficulty: Difficulty
§locked: bool
Trait Implementations§
Source§impl Clone for PlayServerDifficultySpec
impl Clone for PlayServerDifficultySpec
Source§fn clone(&self) -> PlayServerDifficultySpec
fn clone(&self) -> PlayServerDifficultySpec
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 PlayServerDifficultySpec
impl Debug for PlayServerDifficultySpec
Source§impl Deserialize for PlayServerDifficultySpec
impl Deserialize for PlayServerDifficultySpec
fn mc_deserialize(_rest: &[u8]) -> DeserializeResult<'_, Self>
Source§impl From<(Difficulty, bool)> for PlayServerDifficultySpec
impl From<(Difficulty, bool)> for PlayServerDifficultySpec
Source§fn from(other: (Difficulty, bool)) -> Self
fn from(other: (Difficulty, bool)) -> Self
Converts to this type from the input type.
Source§impl From<PlayServerDifficultySpec> for (Difficulty, bool)
impl From<PlayServerDifficultySpec> for (Difficulty, bool)
Source§fn from(other: PlayServerDifficultySpec) -> Self
fn from(other: PlayServerDifficultySpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PlayServerDifficultySpec
impl PartialEq for PlayServerDifficultySpec
Source§impl Serialize for PlayServerDifficultySpec
impl Serialize for PlayServerDifficultySpec
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for PlayServerDifficultySpec
Auto Trait Implementations§
impl Freeze for PlayServerDifficultySpec
impl RefUnwindSafe for PlayServerDifficultySpec
impl Send for PlayServerDifficultySpec
impl Sync for PlayServerDifficultySpec
impl Unpin for PlayServerDifficultySpec
impl UnwindSafe for PlayServerDifficultySpec
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