pub struct HistogramParameters {
pub bounds: Box<HistogramBounds>,
pub buckets: Box<HistogramBuckets>,
pub column_name: String,
pub interactive: Option<bool>,
}Expand description
HistogramParameters : The parameter spec for Histogram
Fields§
§bounds: Box<HistogramBounds>If data, it computes the bounds of the underlying data. If { \"min\": ..., \"max\": ... }, one can specify custom bounds.
buckets: Box<HistogramBuckets>The number of buckets. The value can be specified or calculated.
column_name: StringName of the (numeric) vector attribute or raster band to compute the histogram on.
interactive: Option<bool>Flag, if the histogram should have user interactions for a range selection. It is false by default.
Implementations§
Source§impl HistogramParameters
impl HistogramParameters
Sourcepub fn new(
bounds: HistogramBounds,
buckets: HistogramBuckets,
column_name: String,
) -> HistogramParameters
pub fn new( bounds: HistogramBounds, buckets: HistogramBuckets, column_name: String, ) -> HistogramParameters
The parameter spec for Histogram
Trait Implementations§
Source§impl Clone for HistogramParameters
impl Clone for HistogramParameters
Source§fn clone(&self) -> HistogramParameters
fn clone(&self) -> HistogramParameters
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 HistogramParameters
impl Debug for HistogramParameters
Source§impl Default for HistogramParameters
impl Default for HistogramParameters
Source§fn default() -> HistogramParameters
fn default() -> HistogramParameters
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HistogramParameters
impl<'de> Deserialize<'de> for HistogramParameters
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 HistogramParameters
impl PartialEq for HistogramParameters
Source§impl Serialize for HistogramParameters
impl Serialize for HistogramParameters
impl StructuralPartialEq for HistogramParameters
Auto Trait Implementations§
impl Freeze for HistogramParameters
impl RefUnwindSafe for HistogramParameters
impl Send for HistogramParameters
impl Sync for HistogramParameters
impl Unpin for HistogramParameters
impl UnsafeUnpin for HistogramParameters
impl UnwindSafe for HistogramParameters
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