Struct minetest_protocol::wire::command::TimeOfDaySpec
source · pub struct TimeOfDaySpec {
pub time_of_day: u16,
pub time_speed: Option<f32>,
}
Fields§
§time_of_day: u16
§time_speed: Option<f32>
Trait Implementations§
source§impl Clone for TimeOfDaySpec
impl Clone for TimeOfDaySpec
source§fn clone(&self) -> TimeOfDaySpec
fn clone(&self) -> TimeOfDaySpec
Returns a copy 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 TimeOfDaySpec
impl Debug for TimeOfDaySpec
source§impl Deserialize for TimeOfDaySpec
impl Deserialize for TimeOfDaySpec
fn deserialize(deser: &mut Deserializer<'_>) -> DeserializeResult<Self>
source§impl From<TimeOfDaySpec> for ToClientCommand
impl From<TimeOfDaySpec> for ToClientCommand
source§fn from(value: TimeOfDaySpec) -> Self
fn from(value: TimeOfDaySpec) -> Self
Converts to this type from the input type.
source§impl PartialEq<TimeOfDaySpec> for TimeOfDaySpec
impl PartialEq<TimeOfDaySpec> for TimeOfDaySpec
source§fn eq(&self, other: &TimeOfDaySpec) -> bool
fn eq(&self, other: &TimeOfDaySpec) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.