pub struct Post {
pub id: PostId,
pub author: AuthorId,
pub source: PostSourceId,
pub source_link: Option<Link>,
pub title: String,
pub content: Vec<Content>,
pub links: Vec<Link>,
pub thumb: Option<FileMetaId>,
pub comments: Vec<Comment>,
pub updated: DateTime<Utc>,
pub published: DateTime<Utc>,
}Fields§
§id: PostId§source: PostSourceId§source_link: Option<Link>§title: String§content: Vec<Content>§links: Vec<Link>§thumb: Option<FileMetaId>§comments: Vec<Comment>§updated: DateTime<Utc>§published: DateTime<Utc>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Post
impl<'de> Deserialize<'de> for Post
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Post
Auto Trait Implementations§
impl Freeze for Post
impl RefUnwindSafe for Post
impl Send for Post
impl Sync for Post
impl Unpin for Post
impl UnwindSafe for Post
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