pub struct ReadSettings {
pub relations: RelationSet,
pub workspace_id: String,
pub id_storage: IdStorage,
}Expand description
The settings a read of a workspace depends on — the whole of what traversal needs to be told about the workspace it is traversing.
Three fields out of the ten a full workspace is configured with, and the cut
is not arbitrary: these are the only ones that change what a link resolves
to. relations says which metadata fields are edges at
all; workspace_id is what lets a foreign
id:<ws>/<id> reference be recognized as pointing back here rather than
away; id_storage says whether a document’s own
frontmatter is a place an id can be found. The other seven — link style,
reference style, embed format and style, fixity, history — govern how prov
writes, and a reader that never writes has no use for any of them.
Fields§
§relations: RelationSetThe relation vocabulary: which metadata fields are links, and which one (if any) is the spanning relation the tree walk follows.
workspace_id: StringWhat this workspace calls itself — the qualifier a cross-workspace
reference names it by. Empty means anonymous, so no id:<ws>/<id>
reference can ever be recognized as pointing back here.
id_storage: IdStorageWhere a document’s stable id is persisted, and so where resolution may look for one.
Trait Implementations§
Source§impl Clone for ReadSettings
impl Clone for ReadSettings
Source§fn clone(&self) -> ReadSettings
fn clone(&self) -> ReadSettings
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more