pub struct InteractSpec {
pub action: InteractAction,
pub item_index: u16,
pub pointed_thing: PointedThing,
pub player_pos: PlayerPos,
}
Fields§
§action: InteractAction
§item_index: u16
§pointed_thing: 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
Source§type Output = InteractSpec
type Output = InteractSpec
Output should be Self, except for wrapper types.
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 for InteractSpec
impl PartialEq for InteractSpec
Source§impl Serialize for InteractSpec
impl Serialize for InteractSpec
type Input = InteractSpec
fn serialize<S: Serializer>(value: &Self::Input, ser: &mut S) -> SerializeResult
impl StructuralPartialEq for InteractSpec
Auto Trait Implementations§
impl Freeze for InteractSpec
impl RefUnwindSafe for InteractSpec
impl Send for InteractSpec
impl Sync for InteractSpec
impl Unpin for InteractSpec
impl UnwindSafe for InteractSpec
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