pub struct Note {Show 14 fields
pub id: String,
pub title: String,
pub content: String,
pub author: String,
pub author_id: String,
pub likes: u64,
pub collects: u64,
pub comments: u64,
pub shares: u64,
pub tags: Vec<String>,
pub images: Vec<String>,
pub video: Option<String>,
pub published_at: String,
pub note_type: String,
}Fields§
§id: String§title: String§content: String§likes: u64§collects: u64§comments: u64§images: Vec<String>§video: Option<String>§published_at: String§note_type: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for Note
impl<'de> Deserialize<'de> for Note
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
Auto Trait Implementations§
impl Freeze for Note
impl RefUnwindSafe for Note
impl Send for Note
impl Sync for Note
impl Unpin for Note
impl UnsafeUnpin for Note
impl UnwindSafe for Note
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