[][src]Enum rust_tdlib::types::PageBlock

pub enum PageBlock {
    Anchor(PageBlockAnchor),
    Animation(PageBlockAnimation),
    Audio(PageBlockAudio),
    AuthorDate(PageBlockAuthorDate),
    BlockQuote(PageBlockBlockQuote),
    ChatLink(PageBlockChatLink),
    Collage(PageBlockCollage),
    Cover(PageBlockCover),
    Details(PageBlockDetails),
    Divider(PageBlockDivider),
    Embedded(PageBlockEmbedded),
    EmbeddedPost(PageBlockEmbeddedPost),
    Footer(PageBlockFooter),
    Header(PageBlockHeader),
    Kicker(PageBlockKicker),
    List(PageBlockList),
    Map(PageBlockMap),
    Paragraph(PageBlockParagraph),
    Photo(PageBlockPhoto),
    Preformatted(PageBlockPreformatted),
    PullQuote(PageBlockPullQuote),
    RelatedArticles(PageBlockRelatedArticles),
    Slideshow(PageBlockSlideshow),
    Subheader(PageBlockSubheader),
    Subtitle(PageBlockSubtitle),
    Table(PageBlockTable),
    Title(PageBlockTitle),
    Video(PageBlockVideo),
    VoiceNote(PageBlockVoiceNote),
    // some variants omitted
}

Describes a block of an instant view web page

Variants

An invisible anchor on a page, which can be used in a URL to open the page from the specified anchor

An animation

An audio file

The author and publishing date of a page

A block quote

A link to a chat

A collage

A page cover

A collapsible block

An empty block separating a page

An embedded web page

EmbeddedPost(PageBlockEmbeddedPost)

An embedded post

The footer of a page

A header

A kicker

A list of data blocks

A map

A text paragraph

A photo

Preformatted(PageBlockPreformatted)

A preformatted text paragraph

A pull quote

RelatedArticles(PageBlockRelatedArticles)

Related articles

A slideshow

A subheader

The subtitle of a page

A table

The title of a page

A video

A voice note

Implementations

impl PageBlock[src]

pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>[src]

Trait Implementations

impl AsRef<PageBlock> for PageBlock[src]

impl Clone for PageBlock[src]

impl Debug for PageBlock[src]

impl Default for PageBlock[src]

impl<'de> Deserialize<'de> for PageBlock[src]

impl RObject for PageBlock[src]

impl Serialize for PageBlock[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,