pub struct Learning {
pub agent: String,
pub first_at: String,
pub id: String,
pub impact: Impact,
pub last_at: String,
pub proposals: i32,
pub runs_left: i32,
pub state: LearningState,
pub text: String,
}Expand description
Something an agent worked out, with its history.
Fields§
§agent: StringThe agent this applies to. Learnings do not cross agents.
first_at: StringWhen it was first proposed.
id: StringIdentifier.
impact: ImpactThe agent’s own rating, for triage.
last_at: StringWhen it was most recently proposed.
proposals: i32How many times it has been independently rediscovered, including the first proposal. Repeating advice the agent was just shown does not count — an echo is not evidence.
runs_left: i32Runs before it lapses. Meaningless unless provisional.
state: LearningStateWhere it is in its life.
text: StringThe insight.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Learning
impl<'de> Deserialize<'de> for Learning
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
impl StructuralPartialEq for Learning
Auto Trait Implementations§
impl Freeze for Learning
impl RefUnwindSafe for Learning
impl Send for Learning
impl Sync for Learning
impl Unpin for Learning
impl UnsafeUnpin for Learning
impl UnwindSafe for Learning
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