Struct minetest_protocol::wire::command::InteractSpec
source · pub struct InteractSpec {
pub action: InteractAction,
pub item_index: u16,
pub pointed_thing: Wrapped32<PointedThing>,
pub player_pos: PlayerPos,
}
Fields§
§action: InteractAction
§item_index: u16
§pointed_thing: Wrapped32<PointedThing>
§player_pos: PlayerPos
Trait Implementations§
source§impl Clone for InteractSpec
impl Clone for InteractSpec
source§fn clone(&self) -> InteractSpec
fn clone(&self) -> InteractSpec
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 InteractSpec
impl Debug for InteractSpec
source§impl Deserialize for InteractSpec
impl Deserialize for InteractSpec
fn deserialize(deser: &mut Deserializer<'_>) -> DeserializeResult<Self>
source§impl From<InteractSpec> for ToServerCommand
impl From<InteractSpec> for ToServerCommand
source§fn from(value: InteractSpec) -> Self
fn from(value: InteractSpec) -> Self
Converts to this type from the input type.
source§impl PartialEq<InteractSpec> for InteractSpec
impl PartialEq<InteractSpec> for InteractSpec
source§fn eq(&self, other: &InteractSpec) -> bool
fn eq(&self, other: &InteractSpec) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.