pub enum MarkupLanguage {
Markdown = 1,
Html = 2,
}Expand description
markup_language:决定笔记正文如何渲染。 来源:joplin/packages/renderer/types.ts:3-7 serde 下序列化为整数 1|2(与 Joplin 元数据一致,插件 ABI 依赖此形状)。
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for MarkupLanguage
impl Clone for MarkupLanguage
Source§fn clone(&self) -> MarkupLanguage
fn clone(&self) -> MarkupLanguage
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 MarkupLanguage
Source§impl Debug for MarkupLanguage
impl Debug for MarkupLanguage
impl Eq for MarkupLanguage
Source§impl From<MarkupLanguage> for i64
impl From<MarkupLanguage> for i64
Source§fn from(v: MarkupLanguage) -> Self
fn from(v: MarkupLanguage) -> Self
Converts to this type from the input type.
Source§impl From<i64> for MarkupLanguage
impl From<i64> for MarkupLanguage
Source§impl PartialEq for MarkupLanguage
impl PartialEq for MarkupLanguage
Source§fn eq(&self, other: &MarkupLanguage) -> bool
fn eq(&self, other: &MarkupLanguage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MarkupLanguage
Auto Trait Implementations§
impl Freeze for MarkupLanguage
impl RefUnwindSafe for MarkupLanguage
impl Send for MarkupLanguage
impl Sync for MarkupLanguage
impl Unpin for MarkupLanguage
impl UnsafeUnpin for MarkupLanguage
impl UnwindSafe for MarkupLanguage
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