pub enum PageBlock {
Show 29 variants
Unsupported,
Title(PageBlockTitle),
Subtitle(PageBlockSubtitle),
AuthorDate(PageBlockAuthorDate),
Header(PageBlockHeader),
Subheader(PageBlockSubheader),
Paragraph(PageBlockParagraph),
Preformatted(PageBlockPreformatted),
Footer(PageBlockFooter),
Divider,
Anchor(PageBlockAnchor),
List(PageBlockList),
Blockquote(PageBlockBlockquote),
Pullquote(PageBlockPullquote),
Photo(PageBlockPhoto),
Video(PageBlockVideo),
Cover(Box<PageBlockCover>),
Embed(PageBlockEmbed),
EmbedPost(PageBlockEmbedPost),
Collage(PageBlockCollage),
Slideshow(PageBlockSlideshow),
Channel(PageBlockChannel),
Audio(PageBlockAudio),
Kicker(PageBlockKicker),
Table(PageBlockTable),
OrderedList(PageBlockOrderedList),
Details(PageBlockDetails),
RelatedArticles(PageBlockRelatedArticles),
Map(PageBlockMap),
}Expand description
Variants§
Unsupported
Title(PageBlockTitle)
Subtitle(PageBlockSubtitle)
AuthorDate(PageBlockAuthorDate)
Header(PageBlockHeader)
Subheader(PageBlockSubheader)
Paragraph(PageBlockParagraph)
Preformatted(PageBlockPreformatted)
Divider
Anchor(PageBlockAnchor)
List(PageBlockList)
Blockquote(PageBlockBlockquote)
Pullquote(PageBlockPullquote)
Photo(PageBlockPhoto)
Video(PageBlockVideo)
Cover(Box<PageBlockCover>)
Embed(PageBlockEmbed)
EmbedPost(PageBlockEmbedPost)
Collage(PageBlockCollage)
Slideshow(PageBlockSlideshow)
Channel(PageBlockChannel)
Audio(PageBlockAudio)
Kicker(PageBlockKicker)
Table(PageBlockTable)
OrderedList(PageBlockOrderedList)
Details(PageBlockDetails)
RelatedArticles(PageBlockRelatedArticles)
Map(PageBlockMap)
Trait Implementations§
Source§impl Deserializable for PageBlock
impl Deserializable for PageBlock
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<PageBlockAnchor> for PageBlock
impl From<PageBlockAnchor> for PageBlock
Source§fn from(x: PageBlockAnchor) -> Self
fn from(x: PageBlockAnchor) -> Self
Converts to this type from the input type.
Source§impl From<PageBlockAudio> for PageBlock
impl From<PageBlockAudio> for PageBlock
Source§fn from(x: PageBlockAudio) -> Self
fn from(x: PageBlockAudio) -> Self
Converts to this type from the input type.
Source§impl From<PageBlockAuthorDate> for PageBlock
impl From<PageBlockAuthorDate> for PageBlock
Source§fn from(x: PageBlockAuthorDate) -> Self
fn from(x: PageBlockAuthorDate) -> Self
Converts to this type from the input type.
Source§impl From<PageBlockBlockquote> for PageBlock
impl From<PageBlockBlockquote> for PageBlock
Source§fn from(x: PageBlockBlockquote) -> Self
fn from(x: PageBlockBlockquote) -> Self
Converts to this type from the input type.
Source§impl From<PageBlockChannel> for PageBlock
impl From<PageBlockChannel> for PageBlock
Source§fn from(x: PageBlockChannel) -> Self
fn from(x: PageBlockChannel) -> Self
Converts to this type from the input type.
Source§impl From<PageBlockCollage> for PageBlock
impl From<PageBlockCollage> for PageBlock
Source§fn from(x: PageBlockCollage) -> Self
fn from(x: PageBlockCollage) -> Self
Converts to this type from the input type.
Source§impl From<PageBlockCover> for PageBlock
impl From<PageBlockCover> for PageBlock
Source§fn from(x: PageBlockCover) -> Self
fn from(x: PageBlockCover) -> Self
Converts to this type from the input type.
Source§impl From<PageBlockDetails> for PageBlock
impl From<PageBlockDetails> for PageBlock
Source§fn from(x: PageBlockDetails) -> Self
fn from(x: PageBlockDetails) -> Self
Converts to this type from the input type.
Source§impl From<PageBlockDivider> for PageBlock
impl From<PageBlockDivider> for PageBlock
Source§fn from(_x: PageBlockDivider) -> Self
fn from(_x: PageBlockDivider) -> Self
Converts to this type from the input type.
Source§impl From<PageBlockEmbed> for PageBlock
impl From<PageBlockEmbed> for PageBlock
Source§fn from(x: PageBlockEmbed) -> Self
fn from(x: PageBlockEmbed) -> Self
Converts to this type from the input type.
Source§impl From<PageBlockEmbedPost> for PageBlock
impl From<PageBlockEmbedPost> for PageBlock
Source§fn from(x: PageBlockEmbedPost) -> Self
fn from(x: PageBlockEmbedPost) -> Self
Converts to this type from the input type.
Source§fn from(x: PageBlockFooter) -> Self
fn from(x: PageBlockFooter) -> Self
Converts to this type from the input type.
Source§impl From<PageBlockHeader> for PageBlock
impl From<PageBlockHeader> for PageBlock
Source§fn from(x: PageBlockHeader) -> Self
fn from(x: PageBlockHeader) -> Self
Converts to this type from the input type.
Source§impl From<PageBlockKicker> for PageBlock
impl From<PageBlockKicker> for PageBlock
Source§fn from(x: PageBlockKicker) -> Self
fn from(x: PageBlockKicker) -> Self
Converts to this type from the input type.
Source§impl From<PageBlockList> for PageBlock
impl From<PageBlockList> for PageBlock
Source§fn from(x: PageBlockList) -> Self
fn from(x: PageBlockList) -> Self
Converts to this type from the input type.
Source§impl From<PageBlockMap> for PageBlock
impl From<PageBlockMap> for PageBlock
Source§fn from(x: PageBlockMap) -> Self
fn from(x: PageBlockMap) -> Self
Converts to this type from the input type.
Source§impl From<PageBlockOrderedList> for PageBlock
impl From<PageBlockOrderedList> for PageBlock
Source§fn from(x: PageBlockOrderedList) -> Self
fn from(x: PageBlockOrderedList) -> Self
Converts to this type from the input type.
Source§impl From<PageBlockParagraph> for PageBlock
impl From<PageBlockParagraph> for PageBlock
Source§fn from(x: PageBlockParagraph) -> Self
fn from(x: PageBlockParagraph) -> Self
Converts to this type from the input type.
Source§impl From<PageBlockPhoto> for PageBlock
impl From<PageBlockPhoto> for PageBlock
Source§fn from(x: PageBlockPhoto) -> Self
fn from(x: PageBlockPhoto) -> Self
Converts to this type from the input type.
Source§impl From<PageBlockPreformatted> for PageBlock
impl From<PageBlockPreformatted> for PageBlock
Source§fn from(x: PageBlockPreformatted) -> Self
fn from(x: PageBlockPreformatted) -> Self
Converts to this type from the input type.
Source§impl From<PageBlockPullquote> for PageBlock
impl From<PageBlockPullquote> for PageBlock
Source§fn from(x: PageBlockPullquote) -> Self
fn from(x: PageBlockPullquote) -> Self
Converts to this type from the input type.
Source§impl From<PageBlockRelatedArticles> for PageBlock
impl From<PageBlockRelatedArticles> for PageBlock
Source§fn from(x: PageBlockRelatedArticles) -> Self
fn from(x: PageBlockRelatedArticles) -> Self
Converts to this type from the input type.
Source§impl From<PageBlockSlideshow> for PageBlock
impl From<PageBlockSlideshow> for PageBlock
Source§fn from(x: PageBlockSlideshow) -> Self
fn from(x: PageBlockSlideshow) -> Self
Converts to this type from the input type.
Source§impl From<PageBlockSubheader> for PageBlock
impl From<PageBlockSubheader> for PageBlock
Source§fn from(x: PageBlockSubheader) -> Self
fn from(x: PageBlockSubheader) -> Self
Converts to this type from the input type.
Source§impl From<PageBlockSubtitle> for PageBlock
impl From<PageBlockSubtitle> for PageBlock
Source§fn from(x: PageBlockSubtitle) -> Self
fn from(x: PageBlockSubtitle) -> Self
Converts to this type from the input type.
Source§impl From<PageBlockTable> for PageBlock
impl From<PageBlockTable> for PageBlock
Source§fn from(x: PageBlockTable) -> Self
fn from(x: PageBlockTable) -> Self
Converts to this type from the input type.
Source§impl From<PageBlockTitle> for PageBlock
impl From<PageBlockTitle> for PageBlock
Source§fn from(x: PageBlockTitle) -> Self
fn from(x: PageBlockTitle) -> Self
Converts to this type from the input type.
Source§impl From<PageBlockUnsupported> for PageBlock
impl From<PageBlockUnsupported> for PageBlock
Source§fn from(_x: PageBlockUnsupported) -> Self
fn from(_x: PageBlockUnsupported) -> Self
Converts to this type from the input type.
Source§impl From<PageBlockVideo> for PageBlock
impl From<PageBlockVideo> for PageBlock
Source§fn from(x: PageBlockVideo) -> Self
fn from(x: PageBlockVideo) -> Self
Converts to this type from the input type.
Source§impl Serializable for PageBlock
impl Serializable for PageBlock
Source§impl TryFrom<PageBlock> for PageBlockAnchor
impl TryFrom<PageBlock> for PageBlockAnchor
Source§impl TryFrom<PageBlock> for PageBlockAudio
impl TryFrom<PageBlock> for PageBlockAudio
Source§impl TryFrom<PageBlock> for PageBlockAuthorDate
impl TryFrom<PageBlock> for PageBlockAuthorDate
Source§impl TryFrom<PageBlock> for PageBlockBlockquote
impl TryFrom<PageBlock> for PageBlockBlockquote
Source§impl TryFrom<PageBlock> for PageBlockChannel
impl TryFrom<PageBlock> for PageBlockChannel
Source§impl TryFrom<PageBlock> for PageBlockCollage
impl TryFrom<PageBlock> for PageBlockCollage
Source§impl TryFrom<PageBlock> for PageBlockCover
impl TryFrom<PageBlock> for PageBlockCover
Source§impl TryFrom<PageBlock> for PageBlockDetails
impl TryFrom<PageBlock> for PageBlockDetails
Source§impl TryFrom<PageBlock> for PageBlockEmbed
impl TryFrom<PageBlock> for PageBlockEmbed
Source§impl TryFrom<PageBlock> for PageBlockEmbedPost
impl TryFrom<PageBlock> for PageBlockEmbedPost
Source§impl TryFrom<PageBlock> for PageBlockHeader
impl TryFrom<PageBlock> for PageBlockHeader
Source§impl TryFrom<PageBlock> for PageBlockKicker
impl TryFrom<PageBlock> for PageBlockKicker
Source§impl TryFrom<PageBlock> for PageBlockList
impl TryFrom<PageBlock> for PageBlockList
Source§impl TryFrom<PageBlock> for PageBlockMap
impl TryFrom<PageBlock> for PageBlockMap
Source§impl TryFrom<PageBlock> for PageBlockOrderedList
impl TryFrom<PageBlock> for PageBlockOrderedList
Source§impl TryFrom<PageBlock> for PageBlockParagraph
impl TryFrom<PageBlock> for PageBlockParagraph
Source§impl TryFrom<PageBlock> for PageBlockPhoto
impl TryFrom<PageBlock> for PageBlockPhoto
Source§impl TryFrom<PageBlock> for PageBlockPreformatted
impl TryFrom<PageBlock> for PageBlockPreformatted
Source§impl TryFrom<PageBlock> for PageBlockPullquote
impl TryFrom<PageBlock> for PageBlockPullquote
Source§impl TryFrom<PageBlock> for PageBlockRelatedArticles
impl TryFrom<PageBlock> for PageBlockRelatedArticles
Source§impl TryFrom<PageBlock> for PageBlockSlideshow
impl TryFrom<PageBlock> for PageBlockSlideshow
Source§impl TryFrom<PageBlock> for PageBlockSubheader
impl TryFrom<PageBlock> for PageBlockSubheader
Source§impl TryFrom<PageBlock> for PageBlockSubtitle
impl TryFrom<PageBlock> for PageBlockSubtitle
Source§impl TryFrom<PageBlock> for PageBlockTable
impl TryFrom<PageBlock> for PageBlockTable
Source§impl TryFrom<PageBlock> for PageBlockTitle
impl TryFrom<PageBlock> for PageBlockTitle
Source§impl TryFrom<PageBlock> for PageBlockVideo
impl TryFrom<PageBlock> for PageBlockVideo
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 UnsafeUnpin 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