pub struct ItemSpawnView {
pub id: String,
pub label: String,
pub item_template: String,
pub quantity: u32,
pub x: f32,
pub y: f32,
pub z: f32,
pub respawn_ticks: u32,
pub building_id: Option<String>,
pub state: ItemSpawnStateView,
}Expand description
Authoritative view of a placed findable item (plan 45) for admin/overseer.
Fields§
§id: String§label: String§item_template: String§quantity: u32§x: f32§y: f32§z: f32§respawn_ticks: u32§building_id: Option<String>§state: ItemSpawnStateViewTrait Implementations§
Source§impl Clone for ItemSpawnView
impl Clone for ItemSpawnView
Source§fn clone(&self) -> ItemSpawnView
fn clone(&self) -> ItemSpawnView
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 ItemSpawnView
impl Debug for ItemSpawnView
Source§impl<'de> Deserialize<'de> for ItemSpawnView
impl<'de> Deserialize<'de> for ItemSpawnView
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ItemSpawnView
impl PartialEq for ItemSpawnView
Source§impl Serialize for ItemSpawnView
impl Serialize for ItemSpawnView
impl StructuralPartialEq for ItemSpawnView
Auto Trait Implementations§
impl Freeze for ItemSpawnView
impl RefUnwindSafe for ItemSpawnView
impl Send for ItemSpawnView
impl Sync for ItemSpawnView
impl Unpin for ItemSpawnView
impl UnsafeUnpin for ItemSpawnView
impl UnwindSafe for ItemSpawnView
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