pub struct ExtractionResult {
pub markdown_with_placeholders: String,
pub extracted: Vec<ExtractedShortcode>,
pub nonce: String,
pub warnings: Vec<String>,
}Expand description
Result of pre-parse extraction.
Fields§
§markdown_with_placeholders: StringMarkdown source with :::shortcode blocks replaced by sentinel
HTML comments. Pulldown-cmark sees this as the input.
extracted: Vec<ExtractedShortcode>One entry per extracted block, indexed by sentinel number.
nonce: StringPer-extraction nonce (8 hex chars). Derived from a hash of the
input markdown so it’s deterministic but collision-resistant
against authored content. The placeholder format is
<!--MOSS_SC_{nonce}_{index}-->; an authored markdown comment
matching that exact shape would have to embed the same hash of
itself, which is computationally improbable for any input shorter
than the SHA universe.
warnings: Vec<String>Build warnings collected during extraction (e.g. unknown shortcode names). Each entry is a one-line human-readable string. Caller surfaces these in the build log; presence does not abort the build.
Trait Implementations§
Source§impl Clone for ExtractionResult
impl Clone for ExtractionResult
Source§fn clone(&self) -> ExtractionResult
fn clone(&self) -> ExtractionResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExtractionResult
impl Debug for ExtractionResult
impl Eq for ExtractionResult
Source§impl PartialEq for ExtractionResult
impl PartialEq for ExtractionResult
impl StructuralPartialEq for ExtractionResult
Auto Trait Implementations§
impl Freeze for ExtractionResult
impl RefUnwindSafe for ExtractionResult
impl Send for ExtractionResult
impl Sync for ExtractionResult
impl Unpin for ExtractionResult
impl UnsafeUnpin for ExtractionResult
impl UnwindSafe for ExtractionResult
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,
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.