pub enum ResolvedRecord {
Slot {
slot: NodeId,
path: String,
full: bool,
reports: Vec<RecordReport>,
},
Unkept {
reports: Vec<RecordReport>,
},
}Expand description
The outcome of reconciling one record against the base tree alone. 仅凭原树对一条记录做对账的结果。
Unkept is not an error: the record is skipped and every other record still
applies. Two things Registry::resolve_record refuses outright, because
either one would silently change what the author meant: an identity and a path
naming different faces, and a directory selector disagreeing with the
graft its plan names.
Unkept 不是错误:记录被跳过,其余记录照常应用。Registry::resolve_record 直接
拒绝两种情形,因为任一种都会静默改变作者的本意:身份与路径指向不同面,以及目录
选择器与计划里的 graft 不一致。
Variants§
Slot
The record addresses a slot the base tree still has. 记录指向原树仍然拥有的槽位。
Fields
path: StringThe slot’s current logical path, not the stored target_path.
槽位的当前逻辑路径,而不是存储的 target_path。
reports: Vec<RecordReport>What reconciliation noticed about this record. 对账针对该记录注意到的情况。
Unkept
No declaration can keep the slot alive; the record is skipped. 没有任何声明能让槽位活着;记录被跳过。
Fields
reports: Vec<RecordReport>What reconciliation noticed about this record. 对账针对该记录注意到的情况。
Implementations§
Trait Implementations§
Source§impl Clone for ResolvedRecord
impl Clone for ResolvedRecord
Source§fn clone(&self) -> ResolvedRecord
fn clone(&self) -> ResolvedRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more