pub struct PostItem {
pub title: String,
pub href: String,
pub meta: Option<String>,
pub excerpt: Option<String>,
pub image: Option<String>,
pub external: bool,
}Expand description
A card within a PostGrid block: a blog/news/events index entry.
Fields§
§title: String§href: String§meta: Option<String>Meta line above the title (e.g. “Category · Date”).
excerpt: Option<String>One-line excerpt under the title.
image: Option<String>Optional lead image src.
external: boolOpen in a new tab (renders target="_blank" rel="noopener").
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PostItem
impl<'de> Deserialize<'de> for PostItem
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 PostItem
impl RefUnwindSafe for PostItem
impl Send for PostItem
impl Sync for PostItem
impl Unpin for PostItem
impl UnsafeUnpin for PostItem
impl UnwindSafe for PostItem
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