#[non_exhaustive]pub struct TimestampMetadata {
pub time_format: String,
pub time_zone: String,
pub time_granularity: String,
pub is_sortable: bool,
pub is_interpolable: bool,
/* private fields */
}Expand description
Metadata of the timestamp column.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.time_format: StringTime format of the timestamp column.
time_zone: StringTime zone of the timestamp column.
time_granularity: StringTime granularity of the timestamp column.
is_sortable: boolWhether the timestamp column is sortable in UI.
is_interpolable: boolWhether the timestamp column is interpolable in UI.
Implementations§
Source§impl TimestampMetadata
impl TimestampMetadata
Sourcepub fn set_time_format<T: Into<String>>(self, v: T) -> Self
pub fn set_time_format<T: Into<String>>(self, v: T) -> Self
Sets the value of time_format.
§Example
ⓘ
let x = TimestampMetadata::new().set_time_format("example");Sourcepub fn set_time_zone<T: Into<String>>(self, v: T) -> Self
pub fn set_time_zone<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_time_granularity<T: Into<String>>(self, v: T) -> Self
pub fn set_time_granularity<T: Into<String>>(self, v: T) -> Self
Sets the value of time_granularity.
§Example
ⓘ
let x = TimestampMetadata::new().set_time_granularity("example");Sourcepub fn set_is_sortable<T: Into<bool>>(self, v: T) -> Self
pub fn set_is_sortable<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_is_interpolable<T: Into<bool>>(self, v: T) -> Self
pub fn set_is_interpolable<T: Into<bool>>(self, v: T) -> Self
Sets the value of is_interpolable.
§Example
ⓘ
let x = TimestampMetadata::new().set_is_interpolable(true);Trait Implementations§
Source§impl Clone for TimestampMetadata
impl Clone for TimestampMetadata
Source§fn clone(&self) -> TimestampMetadata
fn clone(&self) -> TimestampMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TimestampMetadata
impl Debug for TimestampMetadata
Source§impl Default for TimestampMetadata
impl Default for TimestampMetadata
Source§fn default() -> TimestampMetadata
fn default() -> TimestampMetadata
Returns the “default value” for a type. Read more
Source§impl Message for TimestampMetadata
impl Message for TimestampMetadata
Source§impl PartialEq for TimestampMetadata
impl PartialEq for TimestampMetadata
Source§fn eq(&self, other: &TimestampMetadata) -> bool
fn eq(&self, other: &TimestampMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TimestampMetadata
Auto Trait Implementations§
impl Freeze for TimestampMetadata
impl RefUnwindSafe for TimestampMetadata
impl Send for TimestampMetadata
impl Sync for TimestampMetadata
impl Unpin for TimestampMetadata
impl UnsafeUnpin for TimestampMetadata
impl UnwindSafe for TimestampMetadata
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