Skip to main content

PageBlock

Enum PageBlock 

Source
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§

Trait Implementations§

Source§

impl Clone for PageBlock

Source§

fn clone(&self) -> PageBlock

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PageBlock

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deserializable for PageBlock

Source§

fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>

Read Self from buf, advancing its position.
Source§

fn from_bytes(bytes: &[u8]) -> Result<Self>

Convenience: deserialize from a byte slice.
Source§

impl From<PageBlockAnchor> for PageBlock

Source§

fn from(x: PageBlockAnchor) -> Self

Converts to this type from the input type.
Source§

impl From<PageBlockAudio> for PageBlock

Source§

fn from(x: PageBlockAudio) -> Self

Converts to this type from the input type.
Source§

impl From<PageBlockAuthorDate> for PageBlock

Source§

fn from(x: PageBlockAuthorDate) -> Self

Converts to this type from the input type.
Source§

impl From<PageBlockBlockquote> for PageBlock

Source§

fn from(x: PageBlockBlockquote) -> Self

Converts to this type from the input type.
Source§

impl From<PageBlockChannel> for PageBlock

Source§

fn from(x: PageBlockChannel) -> Self

Converts to this type from the input type.
Source§

impl From<PageBlockCollage> for PageBlock

Source§

fn from(x: PageBlockCollage) -> Self

Converts to this type from the input type.
Source§

impl From<PageBlockCover> for PageBlock

Source§

fn from(x: PageBlockCover) -> Self

Converts to this type from the input type.
Source§

impl From<PageBlockDetails> for PageBlock

Source§

fn from(x: PageBlockDetails) -> Self

Converts to this type from the input type.
Source§

impl From<PageBlockDivider> for PageBlock

Source§

fn from(_x: PageBlockDivider) -> Self

Converts to this type from the input type.
Source§

impl From<PageBlockEmbed> for PageBlock

Source§

fn from(x: PageBlockEmbed) -> Self

Converts to this type from the input type.
Source§

impl From<PageBlockEmbedPost> for PageBlock

Source§

fn from(x: PageBlockEmbedPost) -> Self

Converts to this type from the input type.
Source§

impl From<PageBlockFooter> for PageBlock

Source§

fn from(x: PageBlockFooter) -> Self

Converts to this type from the input type.
Source§

impl From<PageBlockHeader> for PageBlock

Source§

fn from(x: PageBlockHeader) -> Self

Converts to this type from the input type.
Source§

impl From<PageBlockKicker> for PageBlock

Source§

fn from(x: PageBlockKicker) -> Self

Converts to this type from the input type.
Source§

impl From<PageBlockList> for PageBlock

Source§

fn from(x: PageBlockList) -> Self

Converts to this type from the input type.
Source§

impl From<PageBlockMap> for PageBlock

Source§

fn from(x: PageBlockMap) -> Self

Converts to this type from the input type.
Source§

impl From<PageBlockOrderedList> for PageBlock

Source§

fn from(x: PageBlockOrderedList) -> Self

Converts to this type from the input type.
Source§

impl From<PageBlockParagraph> for PageBlock

Source§

fn from(x: PageBlockParagraph) -> Self

Converts to this type from the input type.
Source§

impl From<PageBlockPhoto> for PageBlock

Source§

fn from(x: PageBlockPhoto) -> Self

Converts to this type from the input type.
Source§

impl From<PageBlockPreformatted> for PageBlock

Source§

fn from(x: PageBlockPreformatted) -> Self

Converts to this type from the input type.
Source§

impl From<PageBlockPullquote> for PageBlock

Source§

fn from(x: PageBlockPullquote) -> Self

Converts to this type from the input type.
Source§

impl From<PageBlockRelatedArticles> for PageBlock

Source§

fn from(x: PageBlockRelatedArticles) -> Self

Converts to this type from the input type.
Source§

impl From<PageBlockSlideshow> for PageBlock

Source§

fn from(x: PageBlockSlideshow) -> Self

Converts to this type from the input type.
Source§

impl From<PageBlockSubheader> for PageBlock

Source§

fn from(x: PageBlockSubheader) -> Self

Converts to this type from the input type.
Source§

impl From<PageBlockSubtitle> for PageBlock

Source§

fn from(x: PageBlockSubtitle) -> Self

Converts to this type from the input type.
Source§

impl From<PageBlockTable> for PageBlock

Source§

fn from(x: PageBlockTable) -> Self

Converts to this type from the input type.
Source§

impl From<PageBlockTitle> for PageBlock

Source§

fn from(x: PageBlockTitle) -> Self

Converts to this type from the input type.
Source§

impl From<PageBlockUnsupported> for PageBlock

Source§

fn from(_x: PageBlockUnsupported) -> Self

Converts to this type from the input type.
Source§

impl From<PageBlockVideo> for PageBlock

Source§

fn from(x: PageBlockVideo) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for PageBlock

Source§

fn eq(&self, other: &PageBlock) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serializable for PageBlock

Source§

fn serialize(&self, buf: &mut impl Extend<u8>)

Appends the serialized form of self to buf.
Source§

fn to_bytes(&self) -> Vec<u8>

Convenience: allocate a fresh Vec<u8> and serialize into it.
Source§

impl TryFrom<PageBlock> for PageBlockAnchor

Source§

type Error = PageBlock

The type returned in the event of a conversion error.
Source§

fn try_from(v: PageBlock) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<PageBlock> for PageBlockAudio

Source§

type Error = PageBlock

The type returned in the event of a conversion error.
Source§

fn try_from(v: PageBlock) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<PageBlock> for PageBlockAuthorDate

Source§

type Error = PageBlock

The type returned in the event of a conversion error.
Source§

fn try_from(v: PageBlock) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<PageBlock> for PageBlockBlockquote

Source§

type Error = PageBlock

The type returned in the event of a conversion error.
Source§

fn try_from(v: PageBlock) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<PageBlock> for PageBlockChannel

Source§

type Error = PageBlock

The type returned in the event of a conversion error.
Source§

fn try_from(v: PageBlock) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<PageBlock> for PageBlockCollage

Source§

type Error = PageBlock

The type returned in the event of a conversion error.
Source§

fn try_from(v: PageBlock) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<PageBlock> for PageBlockCover

Source§

type Error = PageBlock

The type returned in the event of a conversion error.
Source§

fn try_from(v: PageBlock) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<PageBlock> for PageBlockDetails

Source§

type Error = PageBlock

The type returned in the event of a conversion error.
Source§

fn try_from(v: PageBlock) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<PageBlock> for PageBlockEmbed

Source§

type Error = PageBlock

The type returned in the event of a conversion error.
Source§

fn try_from(v: PageBlock) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<PageBlock> for PageBlockEmbedPost

Source§

type Error = PageBlock

The type returned in the event of a conversion error.
Source§

fn try_from(v: PageBlock) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<PageBlock> for PageBlockFooter

Source§

type Error = PageBlock

The type returned in the event of a conversion error.
Source§

fn try_from(v: PageBlock) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<PageBlock> for PageBlockHeader

Source§

type Error = PageBlock

The type returned in the event of a conversion error.
Source§

fn try_from(v: PageBlock) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<PageBlock> for PageBlockKicker

Source§

type Error = PageBlock

The type returned in the event of a conversion error.
Source§

fn try_from(v: PageBlock) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<PageBlock> for PageBlockList

Source§

type Error = PageBlock

The type returned in the event of a conversion error.
Source§

fn try_from(v: PageBlock) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<PageBlock> for PageBlockMap

Source§

type Error = PageBlock

The type returned in the event of a conversion error.
Source§

fn try_from(v: PageBlock) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<PageBlock> for PageBlockOrderedList

Source§

type Error = PageBlock

The type returned in the event of a conversion error.
Source§

fn try_from(v: PageBlock) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<PageBlock> for PageBlockParagraph

Source§

type Error = PageBlock

The type returned in the event of a conversion error.
Source§

fn try_from(v: PageBlock) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<PageBlock> for PageBlockPhoto

Source§

type Error = PageBlock

The type returned in the event of a conversion error.
Source§

fn try_from(v: PageBlock) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<PageBlock> for PageBlockPreformatted

Source§

type Error = PageBlock

The type returned in the event of a conversion error.
Source§

fn try_from(v: PageBlock) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<PageBlock> for PageBlockPullquote

Source§

type Error = PageBlock

The type returned in the event of a conversion error.
Source§

fn try_from(v: PageBlock) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<PageBlock> for PageBlockRelatedArticles

Source§

type Error = PageBlock

The type returned in the event of a conversion error.
Source§

fn try_from(v: PageBlock) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<PageBlock> for PageBlockSlideshow

Source§

type Error = PageBlock

The type returned in the event of a conversion error.
Source§

fn try_from(v: PageBlock) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<PageBlock> for PageBlockSubheader

Source§

type Error = PageBlock

The type returned in the event of a conversion error.
Source§

fn try_from(v: PageBlock) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<PageBlock> for PageBlockSubtitle

Source§

type Error = PageBlock

The type returned in the event of a conversion error.
Source§

fn try_from(v: PageBlock) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<PageBlock> for PageBlockTable

Source§

type Error = PageBlock

The type returned in the event of a conversion error.
Source§

fn try_from(v: PageBlock) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<PageBlock> for PageBlockTitle

Source§

type Error = PageBlock

The type returned in the event of a conversion error.
Source§

fn try_from(v: PageBlock) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<PageBlock> for PageBlockVideo

Source§

type Error = PageBlock

The type returned in the event of a conversion error.
Source§

fn try_from(v: PageBlock) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl StructuralPartialEq for PageBlock

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.