pub struct DriveAlignment {
pub kind: String,
pub strength: f64,
}Expand description
A drive that motivates a character’s participation in an encounter.
Fields§
§kind: StringThe drive category (e.g. “autonomy”, “belonging”).
strength: f64How strongly this drive aligns with the action (0.0–1.0).
Trait Implementations§
Source§impl Clone for DriveAlignment
impl Clone for DriveAlignment
Source§fn clone(&self) -> DriveAlignment
fn clone(&self) -> DriveAlignment
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 DriveAlignment
impl Debug for DriveAlignment
Source§impl<'de> Deserialize<'de> for DriveAlignment
impl<'de> Deserialize<'de> for DriveAlignment
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 DriveAlignment
impl PartialEq for DriveAlignment
Source§impl Serialize for DriveAlignment
impl Serialize for DriveAlignment
impl StructuralPartialEq for DriveAlignment
Auto Trait Implementations§
impl Freeze for DriveAlignment
impl RefUnwindSafe for DriveAlignment
impl Send for DriveAlignment
impl Sync for DriveAlignment
impl Unpin for DriveAlignment
impl UnsafeUnpin for DriveAlignment
impl UnwindSafe for DriveAlignment
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