pub struct ChartThemeContentV1 { /* private fields */ }
Implementations§
Source§impl ChartThemeContentV1
impl ChartThemeContentV1
Sourcepub fn builder() -> Builder<TitleEnabledStage>
pub fn builder() -> Builder<TitleEnabledStage>
Returns a new builder.
Source§impl ChartThemeContentV1
impl ChartThemeContentV1
Sourcepub fn title_enabled(&self) -> bool
pub fn title_enabled(&self) -> bool
Whether to show a title in the export.
Sourcepub fn title_alignment(&self) -> &TextAlignment
pub fn title_alignment(&self) -> &TextAlignment
How to align the text of the title.
Sourcepub fn title_font_size(&self) -> i32
pub fn title_font_size(&self) -> i32
Font size of the title.
Sourcepub fn title_font_color(&self) -> &HexColor
pub fn title_font_color(&self) -> &HexColor
Font color of the title.
Sourcepub fn caption_enabled(&self) -> bool
pub fn caption_enabled(&self) -> bool
Whether to show a caption in the export.
Sourcepub fn caption_alignment(&self) -> &TextAlignment
pub fn caption_alignment(&self) -> &TextAlignment
How to align the text of the caption.
Sourcepub fn caption_font_size(&self) -> i32
pub fn caption_font_size(&self) -> i32
Font size of the caption.
Sourcepub fn caption_font_color(&self) -> &HexColor
pub fn caption_font_color(&self) -> &HexColor
Font color of the caption.
Sourcepub fn background_enabled(&self) -> bool
pub fn background_enabled(&self) -> bool
Whether to include a default background with the export.
(false
indicates that the background should be transparent)
Sourcepub fn legend_enabled(&self) -> bool
pub fn legend_enabled(&self) -> bool
Whether to include a legend in the export.
Sourcepub fn legend_position(&self) -> &LegendPosition
pub fn legend_position(&self) -> &LegendPosition
Which side the legend should appear on.
Sourcepub fn legend_font_size(&self) -> i32
pub fn legend_font_size(&self) -> i32
Font size of the legend.
Sourcepub fn legend_font_color(&self) -> &HexColor
pub fn legend_font_color(&self) -> &HexColor
Font color of the legend.
Sourcepub fn aspect_ratio_width(&self) -> i32
pub fn aspect_ratio_width(&self) -> i32
The relative width of the chart export.
Sourcepub fn aspect_ratio_height(&self) -> i32
pub fn aspect_ratio_height(&self) -> i32
The relative height of the chart export.
Sourcepub fn chart_type_themes(&self) -> &ChartTypeThemes
pub fn chart_type_themes(&self) -> &ChartTypeThemes
Theme parameters specific to chart types.
Trait Implementations§
Source§impl Clone for ChartThemeContentV1
impl Clone for ChartThemeContentV1
Source§fn clone(&self) -> ChartThemeContentV1
fn clone(&self) -> ChartThemeContentV1
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ChartThemeContentV1
impl Debug for ChartThemeContentV1
Source§impl<'de> Deserialize<'de> for ChartThemeContentV1
impl<'de> Deserialize<'de> for ChartThemeContentV1
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 From<ChartThemeContentV1> for Builder<Complete>
impl From<ChartThemeContentV1> for Builder<Complete>
Source§fn from(v: ChartThemeContentV1) -> Self
fn from(v: ChartThemeContentV1) -> Self
Converts to this type from the input type.
Source§impl Hash for ChartThemeContentV1
impl Hash for ChartThemeContentV1
Source§impl Ord for ChartThemeContentV1
impl Ord for ChartThemeContentV1
Source§fn cmp(&self, other: &ChartThemeContentV1) -> Ordering
fn cmp(&self, other: &ChartThemeContentV1) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ChartThemeContentV1
impl PartialEq for ChartThemeContentV1
Source§impl PartialOrd for ChartThemeContentV1
impl PartialOrd for ChartThemeContentV1
Source§impl Serialize for ChartThemeContentV1
impl Serialize for ChartThemeContentV1
impl Eq for ChartThemeContentV1
impl StructuralPartialEq for ChartThemeContentV1
Auto Trait Implementations§
impl Freeze for ChartThemeContentV1
impl RefUnwindSafe for ChartThemeContentV1
impl Send for ChartThemeContentV1
impl Sync for ChartThemeContentV1
impl Unpin for ChartThemeContentV1
impl UnwindSafe for ChartThemeContentV1
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request