pub struct PostResource {
pub id: i32,
pub title: String,
pub slug: String,
pub summary: Option<String>,
pub content_md: String,
pub tags: Vec<String>,
pub created_at: DateTime<Utc>,
pub published_at: Option<DateTime<Utc>>,
pub url: String,
}Expand description
get_post 返回的单篇已发布文章(含正文)。
Fields§
§id: i32§title: String§slug: String§summary: Option<String>§content_md: String§created_at: DateTime<Utc>§published_at: Option<DateTime<Utc>>§url: String站内文章 URL。
Trait Implementations§
Source§impl Debug for PostResource
impl Debug for PostResource
Auto Trait Implementations§
impl Freeze for PostResource
impl RefUnwindSafe for PostResource
impl Send for PostResource
impl Sync for PostResource
impl Unpin for PostResource
impl UnsafeUnpin for PostResource
impl UnwindSafe for PostResource
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.