#[non_exhaustive]pub enum TimestampGranularity {
Unspecified,
Millis,
UnknownValue(UnknownValue),
}Expand description
Possible timestamp granularities to use when keeping multiple versions of data in a table.
§Working with unknown values
This enum is defined as #[non_exhaustive] because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unspecified
The user did not specify a granularity. Should not be returned. When specified during table creation, MILLIS will be used.
Millis
The table keeps data versioned at a granularity of 1ms.
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using TimestampGranularity::value or TimestampGranularity::name.
Implementations§
Trait Implementations§
Source§impl Clone for TimestampGranularity
impl Clone for TimestampGranularity
Source§fn clone(&self) -> TimestampGranularity
fn clone(&self) -> TimestampGranularity
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TimestampGranularity
impl Debug for TimestampGranularity
Source§impl Default for TimestampGranularity
impl Default for TimestampGranularity
Source§impl<'de> Deserialize<'de> for TimestampGranularity
impl<'de> Deserialize<'de> for TimestampGranularity
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>,
Source§impl Display for TimestampGranularity
impl Display for TimestampGranularity
Source§impl From<&str> for TimestampGranularity
impl From<&str> for TimestampGranularity
Source§impl From<i32> for TimestampGranularity
impl From<i32> for TimestampGranularity
Source§impl PartialEq for TimestampGranularity
impl PartialEq for TimestampGranularity
Source§impl Serialize for TimestampGranularity
impl Serialize for TimestampGranularity
impl StructuralPartialEq for TimestampGranularity
Auto Trait Implementations§
impl Freeze for TimestampGranularity
impl RefUnwindSafe for TimestampGranularity
impl Send for TimestampGranularity
impl Sync for TimestampGranularity
impl Unpin for TimestampGranularity
impl UnwindSafe for TimestampGranularity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.