pub struct ResourceBody {
pub mind: MindCapacity,
pub energy: ProcessingEnergy,
pub reach: NetworkReach,
pub storage: StorageCapacity,
pub visual: Option<GpuCapacity>,
pub vitals: BodyVitals,
pub sensations: Vec<ResourceSensation>,
}Expand description
The agent’s resource body — all resources it can feel.
Fields§
§mind: MindCapacity§energy: ProcessingEnergy§reach: NetworkReach§storage: StorageCapacity§visual: Option<GpuCapacity>§vitals: BodyVitals§sensations: Vec<ResourceSensation>Trait Implementations§
Source§impl Clone for ResourceBody
impl Clone for ResourceBody
Source§fn clone(&self) -> ResourceBody
fn clone(&self) -> ResourceBody
Returns a duplicate 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 ResourceBody
impl Debug for ResourceBody
Source§impl<'de> Deserialize<'de> for ResourceBody
impl<'de> Deserialize<'de> for ResourceBody
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 ResourceBody
impl RefUnwindSafe for ResourceBody
impl Send for ResourceBody
impl Sync for ResourceBody
impl Unpin for ResourceBody
impl UnsafeUnpin for ResourceBody
impl UnwindSafe for ResourceBody
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