pub struct LearnPlan {
pub added: Vec<FactV1>,
pub dropped: Vec<(String, ReasonCode)>,
pub merges: Vec<(String, Vec<String>)>,
pub watermark: Option<UtcDateTime>,
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<UtcDateTime>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 Forget for LearnPlan
impl Freeze for LearnPlanwhere
*const u8 is !null: Freeze,
PhantomData<FactV1>: Freeze,
PhantomData<(String, ReasonCode)>: Freeze,
PhantomData<(String, Vec<String>)>: Freeze,
PhantomData<String>: Freeze,
PhantomData<CapturedFact>: Freeze,
impl Move for LearnPlan
impl RefUnwindSafe for LearnPlan
impl Send for LearnPlanwhere
RawVecInner: Send,
impl Sync for LearnPlanwhere
RawVecInner: Sync,
impl Unpin for LearnPlan
impl UnsafeUnpin for LearnPlanwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<FactV1>: UnsafeUnpin,
PhantomData<(String, ReasonCode)>: UnsafeUnpin,
PhantomData<(String, Vec<String>)>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<CapturedFact>: UnsafeUnpin,
impl UnwindSafe for LearnPlanwhere
RawVecInner: UnwindSafe,
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,
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