pub struct Learning {
pub id: LearningId,
pub agent: AgentName,
pub text: String,
pub impact: Impact,
pub state: State,
pub proposals: u32,
pub runs_left: u32,
pub first_at: Timestamp,
pub last_at: Timestamp,
}Expand description
A proposal that has been taken up, with its history.
Fields§
§id: LearningIdIdentifier.
agent: AgentNameThe agent this applies to. Learnings do not cross agents.
text: StringThe insight.
impact: ImpactThe agent’s own rating, for triage.
state: StateWhere it is in its life.
proposals: u32How many times this insight has been proposed: one for the original discovery, plus one for each independent rediscovery after a lapse. Echoes never count.
runs_left: u32Runs left before it lapses. Meaningless unless State::Provisional.
first_at: TimestampWhen it was first proposed.
last_at: TimestampWhen it was most recently proposed.
Implementations§
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