pub struct ImportResult {
pub candidate: Plan,
pub report: ImportReport,
}Expand description
Candidate plan and its report; the candidate is reviewed and applied through the plan-change path, never written directly.
Fields§
§candidate: PlanFull candidate snapshot at the current revision.
report: ImportReportPer-item preserved, approximated and rejected source data.
Implementations§
Source§impl ImportResult
impl ImportResult
Sourcepub fn source_change(&self, current: &Plan, key: &str) -> Option<SourceChange>
pub fn source_change(&self, current: &Plan, key: &str) -> Option<SourceChange>
Source task and attempted changes at local work key, when an imported task maps to it.
Sourcepub fn source_link_change(
&self,
current: &Plan,
dependency: &str,
) -> Option<SourceLinkChange>
pub fn source_link_change( &self, current: &Plan, dependency: &str, ) -> Option<SourceLinkChange>
Source link and attempted change at local dependency dependency (its identity as text),
when the candidate keeps it for a source link or removes it between imported work.
Trait Implementations§
Source§impl Clone for ImportResult
impl Clone for ImportResult
Source§impl Debug for ImportResult
impl Debug for ImportResult
Source§impl<'de> Deserialize<'de> for ImportResult
impl<'de> Deserialize<'de> for ImportResult
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
Source§impl PartialEq for ImportResult
impl PartialEq for ImportResult
Source§impl Serialize for ImportResult
impl Serialize for ImportResult
impl StructuralPartialEq for ImportResult
Auto Trait Implementations§
impl Freeze for ImportResult
impl RefUnwindSafe for ImportResult
impl Send for ImportResult
impl Sync for ImportResult
impl Unpin for ImportResult
impl UnsafeUnpin for ImportResult
impl UnwindSafe for ImportResult
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