pub struct RangeBreak {
pub bounds: Option<[NumOrString; 2]>,
pub pattern: Option<NumOrString>,
pub values: Option<Vec<NumOrString>>,
pub dvalue: Option<u64>,
pub enabled: Option<bool>,
}Expand description
Struct representing a rangebreak for Plotly axes. See: https://plotly.com/python/reference/layout/xaxis/#layout-xaxis-rangebreaks
Fields§
§bounds: Option<[NumOrString; 2]>Sets the lower and upper bounds for this range break, e.g. [“sat”, “mon”]
pattern: Option<NumOrString>Sets the pattern by which this range break is generated, e.g. “day of week”
values: Option<Vec<NumOrString>>Sets the values at which this range break occurs. See Plotly.js docs for details.
dvalue: Option<u64>Sets the size of each range break in milliseconds (for time axes).
enabled: Option<bool>Sets whether this range break is enabled.
Implementations§
Trait Implementations§
Source§impl Clone for RangeBreak
impl Clone for RangeBreak
Source§fn clone(&self) -> RangeBreak
fn clone(&self) -> RangeBreak
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RangeBreak
impl Debug for RangeBreak
Source§impl Default for RangeBreak
impl Default for RangeBreak
Source§impl PartialEq for RangeBreak
impl PartialEq for RangeBreak
Source§impl Serialize for RangeBreak
impl Serialize for RangeBreak
impl StructuralPartialEq for RangeBreak
Auto Trait Implementations§
impl Freeze for RangeBreak
impl RefUnwindSafe for RangeBreak
impl Send for RangeBreak
impl Sync for RangeBreak
impl Unpin for RangeBreak
impl UnwindSafe for RangeBreak
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)