pub struct LearnPlan {
pub added: Vec<FactV1>,
pub dropped: Vec<(String, ReasonCode)>,
pub merges: Vec<(String, Vec<String>)>,
pub watermark: Option<DateTime<Utc>>,
pub import_sources: Vec<String>,
pub captured: Vec<CapturedFact>,
}Expand description
What plan_learn proposes.
Fields§
§added: Vec<FactV1>§dropped: Vec<(String, ReasonCode)>(category/key, reason) of every fact the gate refused; texts are
never included.
merges: Vec<(String, Vec<String>)>Near duplicates that bring references the held fact lacks: (id of the held fact, new references), for the event builder (V4).
watermark: Option<DateTime<Utc>>created_at of the newest fact considered; the next draft starts after it.
import_sources: Vec<String>plan_import: the import source of each fact in added (same
order), import:docs:<path>#<slug> or import:git:<sha>.
captured: Vec<CapturedFact>Every fact in added, as the gate passed it (same order): what the
event path (C0 2.0) builds its node.add from.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LearnPlan
impl RefUnwindSafe for LearnPlan
impl Send for LearnPlan
impl Sync for LearnPlan
impl Unpin for LearnPlan
impl UnsafeUnpin for LearnPlan
impl UnwindSafe for LearnPlan
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more