pub enum CalloutKind {
Show 16 variants
Note,
Abstract,
Info,
Todo,
Tip,
Success,
Question,
Warning,
Failure,
Danger,
Bug,
Example,
Quote,
Important,
Summary,
Help,
}Expand description
Canonical callout kind. Obsidian-dialect aliases canonicalize via
CalloutKind::from_raw (e.g. tldr/summary → CalloutKind::Abstract).
Unknown kinds fall back to CalloutKind::Note; the parser logs at
trace level (Diagnostic threading is a Phase 4 followup — see
validation::Diagnostic, today scoped to frontmatter validation).
Variants§
Note
Abstract
Info
Todo
Tip
Success
Question
Warning
Failure
Danger
Bug
Example
Quote
Important
Summary
Help
Implementations§
Source§impl CalloutKind
impl CalloutKind
Sourcepub fn from_raw(raw: &str) -> Option<Self>
pub fn from_raw(raw: &str) -> Option<Self>
Canonicalize a raw callout name (case-insensitive) to a
CalloutKind. Returns None if the name is not a recognized
canonical kind or alias.
Alias table (Obsidian-dialect, per shape-spec § 1):
tldr/summary→Abstracthint/important→Tipcheck/done→Successhelp/faq→Questioncaution/attention→Warningfail/missing→Failureerror→Dangercite→Quote
pending is also accepted as an alias for Todo (used by
SoCiviC Theatre voices.md; carried over from pre-Phase-4 Stage 1
support in crates/moss-core/src/resolve/callouts.rs).
Note: the CalloutKind enum reserves Important, Summary,
and Help as canonical variants for future Stage 2 use (e.g.
editor-emitted callouts that should not name-clash with the
Obsidian aliases above). Author markdown can’t currently produce
these three through from_raw; they’re reachable only via
programmatic construction.
Sourcepub fn default_title(self) -> &'static str
pub fn default_title(self) -> &'static str
Default display title (capitalized canonical kind) used when the
author wrote > [!type] with no inline title text.
Trait Implementations§
Source§impl Clone for CalloutKind
impl Clone for CalloutKind
Source§fn clone(&self) -> CalloutKind
fn clone(&self) -> CalloutKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CalloutKind
Source§impl Debug for CalloutKind
impl Debug for CalloutKind
Source§impl<'de> Deserialize<'de> for CalloutKind
impl<'de> Deserialize<'de> for CalloutKind
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>,
impl Eq for CalloutKind
Source§impl Hash for CalloutKind
impl Hash for CalloutKind
Source§impl PartialEq for CalloutKind
impl PartialEq for CalloutKind
Source§impl Serialize for CalloutKind
impl Serialize for CalloutKind
impl StructuralPartialEq for CalloutKind
Auto Trait Implementations§
impl Freeze for CalloutKind
impl RefUnwindSafe for CalloutKind
impl Send for CalloutKind
impl Sync for CalloutKind
impl Unpin for CalloutKind
impl UnsafeUnpin for CalloutKind
impl UnwindSafe for CalloutKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.