pub struct PageBlockEmbedded {
pub url: String,
pub html: String,
pub poster_photo: Option<Photo>,
pub width: i32,
pub height: i32,
pub caption: RichText,
pub is_full_width: bool,
pub allow_scrolling: bool,
}
Expand description
An embedded web page
Fields§
§url: String
Web page URL, if available
html: String
HTML-markup of the embedded page
poster_photo: Option<Photo>
Poster photo, if available; may be null
width: i32
Block width
height: i32
Block height
caption: RichText
Block caption
is_full_width: bool
True, if the block should be full width
allow_scrolling: bool
True, if scrolling should be allowed
Trait Implementations§
Source§impl Clone for PageBlockEmbedded
impl Clone for PageBlockEmbedded
Source§fn clone(&self) -> PageBlockEmbedded
fn clone(&self) -> PageBlockEmbedded
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PageBlockEmbedded
impl Debug for PageBlockEmbedded
Source§impl<'de> Deserialize<'de> for PageBlockEmbedded
impl<'de> Deserialize<'de> for PageBlockEmbedded
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
Auto Trait Implementations§
impl Freeze for PageBlockEmbedded
impl RefUnwindSafe for PageBlockEmbedded
impl Send for PageBlockEmbedded
impl Sync for PageBlockEmbedded
impl Unpin for PageBlockEmbedded
impl UnwindSafe for PageBlockEmbedded
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