pub struct RecordedGraft {
pub selector: String,
pub document: GraftPlanDocument,
}Expand description
One persisted graft record, keyed by the directory that held it. 一条持久化嫁接记录,以持有它的目录为键。
selector is the directory name under .nichlink/external-grafts/; it is a
lookup key, not the declared implementation. The document is authoritative
for target, target_path, graft, and full.
selector 是 .nichlink/external-grafts/ 下的目录名,只是查找键,不是声明的
实现。target、target_path、graft、full 以文档为准。
Fields§
§selector: StringThe .nichlink/external-grafts/ directory name that held this record; a
lookup key, not the declared implementation.
持有该记录的 .nichlink/external-grafts/ 目录名;只是查找键,不是声明的实现。
document: GraftPlanDocumentThe plan document read back from that directory; authoritative for the record’s target, path, graft, and granularity. 从该目录读回的切面文档;记录的 target、路径、graft 与粒度以它为准。
Implementations§
Source§impl RecordedGraft
impl RecordedGraft
Sourcepub fn new(
selector: impl Into<String>,
document: GraftPlanDocument,
) -> RecordedGraft
pub fn new( selector: impl Into<String>, document: GraftPlanDocument, ) -> RecordedGraft
Pair a directory selector with the document read back from it. 把目录选择器与从其中读回的文档配对。
Trait Implementations§
Source§impl Clone for RecordedGraft
impl Clone for RecordedGraft
Source§fn clone(&self) -> RecordedGraft
fn clone(&self) -> RecordedGraft
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more