pub(crate) struct RenderedFields {
pub content_html: String,
pub toc_html: Option<String>,
pub auto_summary: String,
pub status: PostStatus,
pub cover_image: Option<String>,
pub word_count: i32,
pub reading_time: i32,
}Expand description
Markdown 渲染 + 度量派生的完整结果。
auto_summary 为正文自动摘要(非用户填写值),调用方负责与用户 summary 合并。
word_count / reading_time 已转为 i32 以直接绑定 SQL 参数。
Fields§
§content_html: String§toc_html: Option<String>§auto_summary: String§status: PostStatus§cover_image: Option<String>§word_count: i32§reading_time: i32Auto Trait Implementations§
impl Freeze for RenderedFields
impl RefUnwindSafe for RenderedFields
impl Send for RenderedFields
impl Sync for RenderedFields
impl Unpin for RenderedFields
impl UnsafeUnpin for RenderedFields
impl UnwindSafe for RenderedFields
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
§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.