pub struct Creep {
pub base_object: BaseObject,
pub name: String,
pub hits: i32,
pub hits_max: i32,
pub user: String,
pub spawning: Option<bool>,
pub fatigue: Option<i32>,
pub body: Option<Vec<CreepBodyPart>>,
pub store: Store,
pub store_capacity: Option<i32>,
pub notify_when_attacked: Option<bool>,
}Expand description
Creep 对象
Fields§
§base_object: BaseObject§name: String§hits: i32§hits_max: i32§user: String§spawning: Option<bool>§fatigue: Option<i32>§body: Option<Vec<CreepBodyPart>>§store: Store§store_capacity: Option<i32>§notify_when_attacked: Option<bool>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Creep
impl<'de> Deserialize<'de> for Creep
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
Auto Trait Implementations§
impl Freeze for Creep
impl RefUnwindSafe for Creep
impl Send for Creep
impl Sync for Creep
impl Unpin for Creep
impl UnwindSafe for Creep
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