pub struct LuaPlayerAddPinParams {
pub always_visible: bool,
pub entity: LuaEntity,
pub label: String,
pub player: LuaAny,
pub position: MapPosition,
pub preview_distance: u16,
pub surface: LuaAny,
}Expand description
Adds a pin to this player for the given pin specification. Either entity, player, or surface and position must be defined.
Fields§
§always_visible: boolDefaults to true.
entity: LuaEntityThe entity to pin.
label: String§player: LuaAnyThe player to pin.
position: MapPositionWhere to create the pin. Required when surface is defined.
preview_distance: u16Defaults to 16.
surface: LuaAnyThe surface to create the pin on.
Trait Implementations§
Source§impl Clone for LuaPlayerAddPinParams
impl Clone for LuaPlayerAddPinParams
Source§fn clone(&self) -> LuaPlayerAddPinParams
fn clone(&self) -> LuaPlayerAddPinParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LuaPlayerAddPinParams
impl Debug for LuaPlayerAddPinParams
Source§impl Default for LuaPlayerAddPinParams
impl Default for LuaPlayerAddPinParams
Source§fn default() -> LuaPlayerAddPinParams
fn default() -> LuaPlayerAddPinParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaPlayerAddPinParams
impl RefUnwindSafe for LuaPlayerAddPinParams
impl Send for LuaPlayerAddPinParams
impl Sync for LuaPlayerAddPinParams
impl Unpin for LuaPlayerAddPinParams
impl UnsafeUnpin for LuaPlayerAddPinParams
impl UnwindSafe for LuaPlayerAddPinParams
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