pub enum Variant {
Desktop,
Mobile,
Print,
Social,
}Expand description
Which layout the SVG profile renders. The HTML profile always carries the chart and, when the specification has one, its mobile variant.
Variants§
Desktop
The chart at width × height.
Mobile
The chart at the size in mobile; its IDs end in -m.
The chart at width × height for print and PDF pipelines and renderers outside the
browser: its stylesheet carries the theme’s colors as literal values instead of CSS
custom properties, and no rule that needs a browser. Its IDs end in -p.
Social
The chart on a 1200 × 630 canvas for link previews such as Open Graph images: the title
drawn large, the source below, no tooltips, and the resolved stylesheet of
Variant::Print. Its IDs end in -s.
Trait Implementations§
impl Copy for Variant
impl Eq for Variant
impl StructuralPartialEq for Variant
Auto Trait Implementations§
impl Freeze for Variant
impl RefUnwindSafe for Variant
impl Send for Variant
impl Sync for Variant
impl Unpin for Variant
impl UnsafeUnpin for Variant
impl UnwindSafe for Variant
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