pub struct Post {
pub author_name: String,
pub comments: Vec<Comment>,
pub content: String,
pub draft: bool,
pub id: String,
pub published: DateTime<FixedOffset>,
pub title: String,
}
Fields§
§comments: Vec<Comment>
§content: String
§draft: bool
§id: String
§published: DateTime<FixedOffset>
§title: String
Implementations§
Source§impl Post
impl Post
pub fn save_content(&self) -> EmptyResult
Trait Implementations§
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