pub struct PageElement {
pub block_id: String,
pub position: Position,
pub style: Option<String>,
pub overflow: Option<String>,
pub transform: Option<Transform>,
}Expand description
An element positioned on a page.
Fields§
§block_id: StringReference to the content block ID.
position: PositionPosition and size.
style: Option<String>Style name to apply.
overflow: Option<String>Overflow behavior.
transform: Option<Transform>2D transform for rotation, scale, skew.
Trait Implementations§
Source§impl Clone for PageElement
impl Clone for PageElement
Source§fn clone(&self) -> PageElement
fn clone(&self) -> PageElement
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 PageElement
impl Debug for PageElement
Source§impl<'de> Deserialize<'de> for PageElement
impl<'de> Deserialize<'de> for PageElement
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
Source§impl PartialEq for PageElement
impl PartialEq for PageElement
Source§impl Serialize for PageElement
impl Serialize for PageElement
impl StructuralPartialEq for PageElement
Auto Trait Implementations§
impl Freeze for PageElement
impl RefUnwindSafe for PageElement
impl Send for PageElement
impl Sync for PageElement
impl Unpin for PageElement
impl UnsafeUnpin for PageElement
impl UnwindSafe for PageElement
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