pub struct RelationStyleConfig {
pub notation: Option<Notation>,
pub path_style: Option<PathStyle>,
pub target: Option<Addressing>,
pub label: Option<bool>,
}Expand description
A per-relation reference-style override, as declared in a config’s
relations block. Each axis is optional and inherits the workspace default
(WorkspaceConfig::reference_style) when absent — so a block need only name
the axes it changes. This is the config form of
Relation::style, and what lets links
going “down” (contents) differ from links going “up” (part_of).
Fields§
§notation: Option<Notation>The notation override (markdown / wikilink / bare).
path_style: Option<PathStyle>The path-resolution override (root / relative).
target: Option<Addressing>The addressing override (path / id / alias).
label: Option<bool>The id-wikilink label override.
Trait Implementations§
Source§impl Clone for RelationStyleConfig
impl Clone for RelationStyleConfig
Source§fn clone(&self) -> RelationStyleConfig
fn clone(&self) -> RelationStyleConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RelationStyleConfig
Source§impl Debug for RelationStyleConfig
impl Debug for RelationStyleConfig
Source§impl Default for RelationStyleConfig
impl Default for RelationStyleConfig
Source§fn default() -> RelationStyleConfig
fn default() -> RelationStyleConfig
Returns the “default value” for a type. Read more
impl Eq for RelationStyleConfig
Source§impl PartialEq for RelationStyleConfig
impl PartialEq for RelationStyleConfig
impl StructuralPartialEq for RelationStyleConfig
Auto Trait Implementations§
impl Freeze for RelationStyleConfig
impl RefUnwindSafe for RelationStyleConfig
impl Send for RelationStyleConfig
impl Sync for RelationStyleConfig
impl Unpin for RelationStyleConfig
impl UnsafeUnpin for RelationStyleConfig
impl UnwindSafe for RelationStyleConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.