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

pub enum PageBlock {
Show variants 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
}
Expand description

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

Trait Implementations

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.