pub enum PageBlock {
Show 29 variants
Title(PageBlockTitle),
Subtitle(PageBlockSubtitle),
AuthorDate(PageBlockAuthorDate),
Header(PageBlockHeader),
Subheader(PageBlockSubheader),
Kicker(PageBlockKicker),
Paragraph(PageBlockParagraph),
Preformatted(PageBlockPreformatted),
Footer(PageBlockFooter),
Divider,
Anchor(PageBlockAnchor),
List(PageBlockList),
BlockQuote(PageBlockBlockQuote),
PullQuote(PageBlockPullQuote),
Animation(PageBlockAnimation),
Audio(PageBlockAudio),
Photo(PageBlockPhoto),
Video(PageBlockVideo),
VoiceNote(PageBlockVoiceNote),
Cover(Box<PageBlockCover>),
Embedded(PageBlockEmbedded),
EmbeddedPost(PageBlockEmbeddedPost),
Collage(PageBlockCollage),
Slideshow(PageBlockSlideshow),
ChatLink(PageBlockChatLink),
Table(PageBlockTable),
Details(PageBlockDetails),
RelatedArticles(PageBlockRelatedArticles),
Map(PageBlockMap),
}
Variants§
Title(PageBlockTitle)
The title of a page
Subtitle(PageBlockSubtitle)
The subtitle of a page
AuthorDate(PageBlockAuthorDate)
The author and publishing date of a page
Header(PageBlockHeader)
A header
Subheader(PageBlockSubheader)
A subheader
Kicker(PageBlockKicker)
A kicker
Paragraph(PageBlockParagraph)
A text paragraph
Preformatted(PageBlockPreformatted)
A preformatted text paragraph
The footer of a page
Divider
An empty block separating a page
Anchor(PageBlockAnchor)
An invisible anchor on a page, which can be used in a URL to open the page from the specified anchor
List(PageBlockList)
A list of data blocks
BlockQuote(PageBlockBlockQuote)
A block quote
PullQuote(PageBlockPullQuote)
A pull quote
Animation(PageBlockAnimation)
An animation
Audio(PageBlockAudio)
An audio file
Photo(PageBlockPhoto)
A photo
Video(PageBlockVideo)
A video
VoiceNote(PageBlockVoiceNote)
A voice note
Cover(Box<PageBlockCover>)
A page cover
Embedded(PageBlockEmbedded)
An embedded web page
EmbeddedPost(PageBlockEmbeddedPost)
An embedded post
Collage(PageBlockCollage)
A collage
Slideshow(PageBlockSlideshow)
A slideshow
ChatLink(PageBlockChatLink)
A link to a chat
Table(PageBlockTable)
A table
Details(PageBlockDetails)
A collapsible block
RelatedArticles(PageBlockRelatedArticles)
Related articles
Map(PageBlockMap)
A map
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PageBlock
impl<'de> Deserialize<'de> for PageBlock
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 StructuralPartialEq for PageBlock
Auto Trait Implementations§
impl Freeze for PageBlock
impl RefUnwindSafe for PageBlock
impl Send for PageBlock
impl Sync for PageBlock
impl Unpin for PageBlock
impl UnwindSafe for PageBlock
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