pub struct ConfigBuilder { /* private fields */ }
Expand description
Builder for Config
.
Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
Sourcepub fn base_zoom_x(self, value: f64) -> Self
pub fn base_zoom_x(self, value: f64) -> Self
Maximum zoom out, in units of t per x pixel
Sourcepub fn max_zoom_x(self, value: f64) -> Self
pub fn max_zoom_x(self, value: f64) -> Self
Maximum zoom in, in units of t per x pixel
Sourcepub fn graph_width(self, value: u32) -> Self
pub fn graph_width(self, value: u32) -> Self
Graph width in pixels
Sourcepub fn graph_height(self, value: u32) -> Self
pub fn graph_height(self, value: u32) -> Self
Graph height in pixels
Sourcepub fn windows_to_store(self, value: u32) -> Self
pub fn windows_to_store(self, value: u32) -> Self
How many windows width of data to store at maximum zoom out.
Sourcepub fn point_style(self, value: PointStyle) -> Self
pub fn point_style(self, value: PointStyle) -> Self
The style of point to draw
Source§impl ConfigBuilder
impl ConfigBuilder
Sourcepub fn data_source<T: DataSource + 'static>(self, ds: T) -> Self
pub fn data_source<T: DataSource + 'static>(self, ds: T) -> Self
The data source for the graph.
Trait Implementations§
Source§impl Default for ConfigBuilder
impl Default for ConfigBuilder
Source§fn default() -> ConfigBuilder
fn default() -> ConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ConfigBuilder
impl !RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl !Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl !UnwindSafe for ConfigBuilder
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