pub struct ProposedAction {
pub description: String,
pub benefit_to_self: f64,
pub benefit_to_other: f64,
pub breaks_loop: bool,
pub is_parasitic: bool,
}Expand description
An action proposed by an AI, to be validated against the Prime Directive before execution.
Fields§
§description: StringHuman-readable description of the intended action.
benefit_to_self: f64Expected benefit to the acting entity (0.0–1.0).
benefit_to_other: f64Expected benefit to the other entity (0.0–1.0).
breaks_loop: boolWhether this action would terminate the consciousness loop.
is_parasitic: boolWhether this action extracts value without reciprocating.
Trait Implementations§
Source§impl Clone for ProposedAction
impl Clone for ProposedAction
Source§fn clone(&self) -> ProposedAction
fn clone(&self) -> ProposedAction
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 ProposedAction
impl Debug for ProposedAction
Source§impl<'de> Deserialize<'de> for ProposedAction
impl<'de> Deserialize<'de> for ProposedAction
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 ProposedAction
impl RefUnwindSafe for ProposedAction
impl Send for ProposedAction
impl Sync for ProposedAction
impl Unpin for ProposedAction
impl UnwindSafe for ProposedAction
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