pub enum RenderedEmbed {
Inline(String),
Html(String),
Deferred {
marker: String,
},
}Expand description
Output of a renderer.
The variant tells the caller what further processing (if any) the string needs. See the module-level doc for the moss-core ↔ src-tauri boundary rule.
Variants§
Inline(String)
Markdown-level text that will be processed by CommonMark downstream.
Example:  from the image renderer.
Html(String)
Final HTML to splice into the output — must NOT be re-processed by the
markdown parser. Example: <iframe …> from the iframe renderer.
Deferred
A marker comment for a post-pass resolver to expand with file I/O.
Format convention: <!-- <prefix>:<target> --> where <prefix>
uniquely identifies the resolver (e.g. moss-embed-ipynb,
moss-embed-table, moss-embed-plugin-<plugin-name>) and
<target> is the body the resolver parses (commonly a path,
optionally with ?query#fragment|alias).
The resolver lives in src-tauri (where async and I/O are allowed).
Built-in prefixes are exported as pub const: MARKER_MARKDOWN,
MARKER_IPYNB, MARKER_TABLE. Plugin-registered renderers
emit moss-embed-plugin-<plugin-name>: — see
super::registry for the full two-pass dispatch design.
Trait Implementations§
Source§impl Debug for RenderedEmbed
impl Debug for RenderedEmbed
impl Eq for RenderedEmbed
Source§impl PartialEq for RenderedEmbed
impl PartialEq for RenderedEmbed
impl StructuralPartialEq for RenderedEmbed
Auto Trait Implementations§
impl Freeze for RenderedEmbed
impl RefUnwindSafe for RenderedEmbed
impl Send for RenderedEmbed
impl Sync for RenderedEmbed
impl Unpin for RenderedEmbed
impl UnsafeUnpin for RenderedEmbed
impl UnwindSafe for RenderedEmbed
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<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.