pub enum ObicoTimestamp {
Seconds(f64),
NotReported,
}Expand description
A Unix timestamp number, or the empty string the producer sends instead.
Variants§
Seconds(f64)
Seconds since the Unix epoch.
NotReported
The producer sent the empty string, meaning it has no instant to send.
Trait Implementations§
Source§impl Clone for ObicoTimestamp
impl Clone for ObicoTimestamp
Source§fn clone(&self) -> ObicoTimestamp
fn clone(&self) -> ObicoTimestamp
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 moreimpl Copy for ObicoTimestamp
Source§impl Debug for ObicoTimestamp
impl Debug for ObicoTimestamp
Source§impl<'de> Deserialize<'de> for ObicoTimestamp
impl<'de> Deserialize<'de> for ObicoTimestamp
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for ObicoTimestamp
impl JsonSchema for ObicoTimestamp
Source§fn json_schema(_generator: &mut SchemaGenerator) -> Schema
fn json_schema(_generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ObicoTimestamp
impl PartialEq for ObicoTimestamp
Source§impl Sample for ObicoTimestamp
impl Sample for ObicoTimestamp
Source§fn sample_full() -> Self
fn sample_full() -> Self
A value carrying every field the type declares.
Source§fn sample_minimal() -> Self
fn sample_minimal() -> Self
A value carrying every optional field absent.
Source§fn sample_alternates() -> Vec<Self>
fn sample_alternates() -> Vec<Self>
One value per further arm, for a type whose wire form is a union. Read more
Source§impl Serialize for ObicoTimestamp
impl Serialize for ObicoTimestamp
impl StructuralPartialEq for ObicoTimestamp
Auto Trait Implementations§
impl Freeze for ObicoTimestamp
impl RefUnwindSafe for ObicoTimestamp
impl Send for ObicoTimestamp
impl Sync for ObicoTimestamp
impl Unpin for ObicoTimestamp
impl UnsafeUnpin for ObicoTimestamp
impl UnwindSafe for ObicoTimestamp
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