Skip to main content

TimeScaleOptions

Struct TimeScaleOptions 

Source
pub struct TimeScaleOptions { /* private fields */ }

Implementations§

Source§

impl TimeScaleOptions

Source

pub fn new() -> TimeScaleOptions

Source

pub fn with_right_offset(self, right_offset: f64) -> TimeScaleOptions

Source

pub fn with_bar_spacing(self, bar_spacing: f64) -> TimeScaleOptions

Source

pub fn with_min_bar_spacing(self, min_bar_spacing: f64) -> TimeScaleOptions

Source

pub fn with_max_bar_spacing(self, max_bar_spacing: f64) -> TimeScaleOptions

Source

pub fn with_fix_left_edge(self, fix_left_edge: bool) -> TimeScaleOptions

Source

pub fn with_fix_right_edge(self, fix_right_edge: bool) -> TimeScaleOptions

Source

pub fn with_lock_visible_time_range_on_resize( self, lock_visible_time_range_on_resize: bool, ) -> TimeScaleOptions

Source

pub fn with_right_bar_stays_on_scroll( self, right_bar_stays_on_scroll: bool, ) -> TimeScaleOptions

Source

pub fn with_border_visible(self, border_visible: bool) -> TimeScaleOptions

Source

pub fn with_border_color(self, border_color: String) -> TimeScaleOptions

Source

pub fn with_visible(self, visible: bool) -> TimeScaleOptions

Source

pub fn with_time_visible(self, time_visible: bool) -> TimeScaleOptions

Source

pub fn with_seconds_visible(self, seconds_visible: bool) -> TimeScaleOptions

Source

pub fn with_shift_visible_range_on_new_bar( self, shift_visible_range_on_new_bar: bool, ) -> TimeScaleOptions

Source

pub fn with_allow_shift_visible_range_on_whitespace_replacement( self, allow_shift_visible_range_on_whitespace_replacement: bool, ) -> TimeScaleOptions

Source

pub fn with_ticks_visible(self, ticks_visible: bool) -> TimeScaleOptions

Source

pub fn with_tick_mark_max_character_length( self, tick_mark_max_character_length: Option<usize>, ) -> TimeScaleOptions

Source

pub fn with_uniform_distribution( self, uniform_distribution: bool, ) -> TimeScaleOptions

Source

pub fn with_minimum_height(self, minimum_height: f64) -> TimeScaleOptions

Source

pub fn with_allow_bold_labels(self, allow_bold_labels: bool) -> TimeScaleOptions

Source

pub fn with_ignore_whitespace_indices( self, ignore_whitespace_indices: bool, ) -> TimeScaleOptions

Source

pub fn right_offset(&self) -> f64

Source

pub fn set_right_offset(&mut self, right_offset: f64)

Source

pub fn bar_spacing(&self) -> f64

Source

pub fn set_bar_spacing(&mut self, bar_spacing: f64)

Source

pub fn min_bar_spacing(&self) -> f64

Source

pub fn set_min_bar_spacing(&mut self, min_bar_spacing: f64)

Source

pub fn max_bar_spacing(&self) -> f64

Source

pub fn set_max_bar_spacing(&mut self, max_bar_spacing: f64)

Source

pub fn fix_left_edge(&self) -> bool

Source

pub fn set_fix_left_edge(&mut self, fix_left_edge: bool)

Source

pub fn fix_right_edge(&self) -> bool

Source

pub fn set_fix_right_edge(&mut self, fix_right_edge: bool)

Source

pub fn lock_visible_time_range_on_resize(&self) -> bool

Source

pub fn set_lock_visible_time_range_on_resize( &mut self, lock_visible_time_range_on_resize: bool, )

Source

pub fn right_bar_stays_on_scroll(&self) -> bool

Source

pub fn set_right_bar_stays_on_scroll(&mut self, right_bar_stays_on_scroll: bool)

Source

pub fn border_visible(&self) -> bool

Source

pub fn set_border_visible(&mut self, border_visible: bool)

Source

pub fn border_color(&self) -> &str

Source

pub fn set_border_color(&mut self, border_color: String)

Source

pub fn visible(&self) -> bool

Source

pub fn set_visible(&mut self, visible: bool)

Source

pub fn time_visible(&self) -> bool

Source

pub fn set_time_visible(&mut self, time_visible: bool)

Source

pub fn seconds_visible(&self) -> bool

Source

pub fn set_seconds_visible(&mut self, seconds_visible: bool)

Source

pub fn shift_visible_range_on_new_bar(&self) -> bool

Source

pub fn set_shift_visible_range_on_new_bar( &mut self, shift_visible_range_on_new_bar: bool, )

Source

pub fn allow_shift_visible_range_on_whitespace_replacement(&self) -> bool

Source

pub fn set_allow_shift_visible_range_on_whitespace_replacement( &mut self, allow_shift_visible_range_on_whitespace_replacement: bool, )

Source

pub fn ticks_visible(&self) -> bool

Source

pub fn set_ticks_visible(&mut self, ticks_visible: bool)

Source

pub fn tick_mark_max_character_length(&self) -> Option<usize>

Source

pub fn set_tick_mark_max_character_length_value( &mut self, tick_mark_max_character_length: Option<usize>, )

Source

pub fn set_tick_mark_max_character_length( &mut self, tick_mark_max_character_length: usize, )

Source

pub fn reset_tick_mark_max_character_length(&mut self)

Source

pub fn uniform_distribution(&self) -> bool

Source

pub fn set_uniform_distribution(&mut self, uniform_distribution: bool)

Source

pub fn minimum_height(&self) -> f64

Source

pub fn set_minimum_height(&mut self, minimum_height: f64)

Source

pub fn allow_bold_labels(&self) -> bool

Source

pub fn set_allow_bold_labels(&mut self, allow_bold_labels: bool)

Source

pub fn ignore_whitespace_indices(&self) -> bool

Source

pub fn set_ignore_whitespace_indices(&mut self, ignore_whitespace_indices: bool)

Trait Implementations§

Source§

impl Clone for TimeScaleOptions

Source§

fn clone(&self) -> TimeScaleOptions

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for TimeScaleOptions

Source§

fn default() -> TimeScaleOptions

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for TimeScaleOptions

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<TimeScaleOptions, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for TimeScaleOptions

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromFormData for T

Source§

fn from_event(ev: &Event) -> Result<T, FromFormDataError>

Tries to deserialize the data, given only the submit event.
Source§

fn from_form_data(form_data: &FormData) -> Result<T, Error>

Tries to deserialize the data, given the actual form data.
Source§

impl<E, T, Request> FromReq<DeleteUrl, Request, E> for T
where Request: Req<E> + Send + 'static, T: DeserializeOwned, E: FromServerFnError,

Source§

async fn from_req(req: Request) -> Result<T, E>

Attempts to deserialize the arguments from a request.
Source§

impl<E, T, Request> FromReq<GetUrl, Request, E> for T
where Request: Req<E> + Send + 'static, T: DeserializeOwned, E: FromServerFnError,

Source§

async fn from_req(req: Request) -> Result<T, E>

Attempts to deserialize the arguments from a request.
Source§

impl<E, T, Request, Encoding> FromReq<Patch<Encoding>, Request, E> for T
where Request: Req<E> + Send + 'static, Encoding: Decodes<T>, E: FromServerFnError,

Source§

async fn from_req(req: Request) -> Result<T, E>

Attempts to deserialize the arguments from a request.
Source§

impl<E, T, Request> FromReq<PatchUrl, Request, E> for T
where Request: Req<E> + Send + 'static, T: DeserializeOwned, E: FromServerFnError,

Source§

async fn from_req(req: Request) -> Result<T, E>

Attempts to deserialize the arguments from a request.
Source§

impl<E, T, Request, Encoding> FromReq<Post<Encoding>, Request, E> for T
where Request: Req<E> + Send + 'static, Encoding: Decodes<T>, E: FromServerFnError,

Source§

async fn from_req(req: Request) -> Result<T, E>

Attempts to deserialize the arguments from a request.
Source§

impl<E, T, Request> FromReq<PostUrl, Request, E> for T
where Request: Req<E> + Send + 'static, T: DeserializeOwned, E: FromServerFnError,

Source§

async fn from_req(req: Request) -> Result<T, E>

Attempts to deserialize the arguments from a request.
Source§

impl<E, T, Request, Encoding> FromReq<Put<Encoding>, Request, E> for T
where Request: Req<E> + Send + 'static, Encoding: Decodes<T>, E: FromServerFnError,

Source§

async fn from_req(req: Request) -> Result<T, E>

Attempts to deserialize the arguments from a request.
Source§

impl<E, T, Request> FromReq<PutUrl, Request, E> for T
where Request: Req<E> + Send + 'static, T: DeserializeOwned, E: FromServerFnError,

Source§

async fn from_req(req: Request) -> Result<T, E>

Attempts to deserialize the arguments from a request.
Source§

impl<E, Encoding, Response, T> FromRes<Patch<Encoding>, Response, E> for T
where Response: ClientRes<E> + Send, Encoding: Decodes<T>, E: FromServerFnError,

Source§

async fn from_res(res: Response) -> Result<T, E>

Attempts to deserialize the outputs from a response.
Source§

impl<E, Encoding, Response, T> FromRes<Post<Encoding>, Response, E> for T
where Response: ClientRes<E> + Send, Encoding: Decodes<T>, E: FromServerFnError,

Source§

async fn from_res(res: Response) -> Result<T, E>

Attempts to deserialize the outputs from a response.
Source§

impl<E, Encoding, Response, T> FromRes<Put<Encoding>, Response, E> for T
where Response: ClientRes<E> + Send, Encoding: Decodes<T>, E: FromServerFnError,

Source§

async fn from_res(res: Response) -> Result<T, E>

Attempts to deserialize the outputs from a response.
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<E, T, Request> IntoReq<DeleteUrl, Request, E> for T
where Request: ClientReq<E>, T: Serialize + Send, E: FromServerFnError,

Source§

fn into_req(self, path: &str, accepts: &str) -> Result<Request, E>

Attempts to serialize the arguments into an HTTP request.
Source§

impl<E, T, Request> IntoReq<GetUrl, Request, E> for T
where Request: ClientReq<E>, T: Serialize + Send, E: FromServerFnError,

Source§

fn into_req(self, path: &str, accepts: &str) -> Result<Request, E>

Attempts to serialize the arguments into an HTTP request.
Source§

impl<E, T, Encoding, Request> IntoReq<Patch<Encoding>, Request, E> for T
where Request: ClientReq<E>, Encoding: Encodes<T>, E: FromServerFnError,

Source§

fn into_req(self, path: &str, accepts: &str) -> Result<Request, E>

Attempts to serialize the arguments into an HTTP request.
Source§

impl<E, T, Request> IntoReq<PatchUrl, Request, E> for T
where Request: ClientReq<E>, T: Serialize + Send, E: FromServerFnError,

Source§

fn into_req(self, path: &str, accepts: &str) -> Result<Request, E>

Attempts to serialize the arguments into an HTTP request.
Source§

impl<E, T, Encoding, Request> IntoReq<Post<Encoding>, Request, E> for T
where Request: ClientReq<E>, Encoding: Encodes<T>, E: FromServerFnError,

Source§

fn into_req(self, path: &str, accepts: &str) -> Result<Request, E>

Attempts to serialize the arguments into an HTTP request.
Source§

impl<E, T, Request> IntoReq<PostUrl, Request, E> for T
where Request: ClientReq<E>, T: Serialize + Send, E: FromServerFnError,

Source§

fn into_req(self, path: &str, accepts: &str) -> Result<Request, E>

Attempts to serialize the arguments into an HTTP request.
Source§

impl<E, T, Encoding, Request> IntoReq<Put<Encoding>, Request, E> for T
where Request: ClientReq<E>, Encoding: Encodes<T>, E: FromServerFnError,

Source§

fn into_req(self, path: &str, accepts: &str) -> Result<Request, E>

Attempts to serialize the arguments into an HTTP request.
Source§

impl<E, T, Request> IntoReq<PutUrl, Request, E> for T
where Request: ClientReq<E>, T: Serialize + Send, E: FromServerFnError,

Source§

fn into_req(self, path: &str, accepts: &str) -> Result<Request, E>

Attempts to serialize the arguments into an HTTP request.
Source§

impl<E, Response, Encoding, T> IntoRes<Patch<Encoding>, Response, E> for T
where Response: TryRes<E>, Encoding: Encodes<T>, E: FromServerFnError + Send, T: Send,

Source§

async fn into_res(self) -> Result<Response, E>

Attempts to serialize the output into an HTTP response.
Source§

impl<E, Response, Encoding, T> IntoRes<Post<Encoding>, Response, E> for T
where Response: TryRes<E>, Encoding: Encodes<T>, E: FromServerFnError + Send, T: Send,

Source§

async fn into_res(self) -> Result<Response, E>

Attempts to serialize the output into an HTTP response.
Source§

impl<E, Response, Encoding, T> IntoRes<Put<Encoding>, Response, E> for T
where Response: TryRes<E>, Encoding: Encodes<T>, E: FromServerFnError + Send, T: Send,

Source§

async fn into_res(self) -> Result<Response, E>

Attempts to serialize the output into an HTTP response.
Source§

impl<T> SerializableKey for T

Source§

fn ser_key(&self) -> String

Serializes the key to a unique string. Read more
Source§

impl<T> StorageAccess<T> for T

Source§

fn as_borrowed(&self) -> &T

Borrows the value.
Source§

fn into_taken(self) -> T

Takes the value.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<S, T> Upcast<T> for S
where T: UpcastFrom<S> + ?Sized, S: ?Sized,

Source§

fn upcast(&self) -> &T
where Self: ErasableGeneric, T: ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider ref type within the Wasm bindgen generics type system. Read more
Source§

fn upcast_into(self) -> T
where Self: Sized + ErasableGeneric, T: ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider type within the Wasm bindgen generics type system. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,