pub struct TableStyleRuleSource {
pub when: String,
pub style: StyleSource,
pub padding: Option<CellPadding>,
pub padding_first_page: Option<CellPadding>,
pub padding_continuation: Option<CellPadding>,
pub text_offset_y: Option<Length>,
pub text_offset_y_first_page: Option<Length>,
pub text_offset_y_continuation: Option<Length>,
pub min_height: Option<Length>,
pub min_height_first_page: Option<Length>,
pub min_height_continuation: Option<Length>,
pub reserve_after: Option<Length>,
}Expand description
Conditional table-row style in frontend color/length syntax.
Fields§
§when: StringDeterministic expression evaluated against one row.
style: StyleSourcePartial data-rule style.
padding: Option<CellPadding>Per-side cell padding applied to every cell in a matching row.
padding_first_page: Option<CellPadding>First-page cell padding for rows matching this rule.
padding_continuation: Option<CellPadding>Continuation-page cell padding for rows matching this rule.
text_offset_y: Option<Length>Paint-only vertical translation for text in matching row cells.
text_offset_y_first_page: Option<Length>First-page paint-only vertical translation for matching row cells.
text_offset_y_continuation: Option<Length>Continuation-page paint-only vertical translation for matching row cells.
min_height: Option<Length>Minimum measured height for rows matching this rule.
min_height_first_page: Option<Length>First-page minimum height for matching rows.
min_height_continuation: Option<Length>Continuation-page minimum height for matching rows.
reserve_after: Option<Length>Additional page capacity reserved after a matching anchored row.
Trait Implementations§
Source§impl Clone for TableStyleRuleSource
impl Clone for TableStyleRuleSource
Source§impl Debug for TableStyleRuleSource
impl Debug for TableStyleRuleSource
Source§impl Default for TableStyleRuleSource
impl Default for TableStyleRuleSource
Source§impl<'de> Deserialize<'de> for TableStyleRuleSource
impl<'de> Deserialize<'de> for TableStyleRuleSource
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 TableStyleRuleSource
impl PartialEq for TableStyleRuleSource
Source§impl Serialize for TableStyleRuleSource
impl Serialize for TableStyleRuleSource
impl StructuralPartialEq for TableStyleRuleSource
Auto Trait Implementations§
impl Freeze for TableStyleRuleSource
impl RefUnwindSafe for TableStyleRuleSource
impl Send for TableStyleRuleSource
impl Sync for TableStyleRuleSource
impl Unpin for TableStyleRuleSource
impl UnsafeUnpin for TableStyleRuleSource
impl UnwindSafe for TableStyleRuleSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.