Struct mesh_protobuf::Timestamp
source · pub struct Timestamp {
pub seconds: i64,
pub nanos: i32,
}
Expand description
A timestamp representing a point in UTC time with nanosecond resolution.
Fields§
§seconds: i64
The number of seconds of UTC time since the Unix epoch.
nanos: i32
Non-negative fractions of a second at nanosecond resolution.
Trait Implementations§
source§impl DefaultEncoding for Timestamp
impl DefaultEncoding for Timestamp
source§type Encoding = TableEncoder
type Encoding = TableEncoder
The encoding to use for the serialization. Read more
source§impl DescribeTable for Timestamp
impl DescribeTable for Timestamp
source§const DESCRIPTION: MessageDescription<'static> = _
const DESCRIPTION: MessageDescription<'static> = _
The protobuf message description for this type.
source§impl From<SystemTime> for Timestamp
impl From<SystemTime> for Timestamp
source§fn from(value: SystemTime) -> Self
fn from(value: SystemTime) -> Self
Converts to this type from the input type.
source§impl Ord for Timestamp
impl Ord for Timestamp
source§impl PartialOrd for Timestamp
impl PartialOrd for Timestamp
source§impl<'encoding, AnyR: 'static> StructDecodeMetadata<'encoding, AnyR> for Timestamp
impl<'encoding, AnyR: 'static> StructDecodeMetadata<'encoding, AnyR> for Timestamp
source§const DECODERS: &'static [ErasedDecoderEntry] = _
const DECODERS: &'static [ErasedDecoderEntry] = _
The list of decoder vtables.
source§impl<AnyR: 'static> StructEncodeMetadata<AnyR> for Timestamp
impl<AnyR: 'static> StructEncodeMetadata<AnyR> for Timestamp
source§const ENCODERS: &'static [ErasedEncoderEntry] = _
const ENCODERS: &'static [ErasedEncoderEntry] = _
The list of encoder vtables.
source§impl StructMetadata for Timestamp
impl StructMetadata for Timestamp
source§impl TryFrom<Timestamp> for SystemTime
impl TryFrom<Timestamp> for SystemTime
impl Copy for Timestamp
impl Downcast<Timestamp> for Timestamp
impl Eq for Timestamp
impl StructuralPartialEq for Timestamp
Auto Trait Implementations§
impl Freeze for Timestamp
impl RefUnwindSafe for Timestamp
impl Send for Timestamp
impl Sync for Timestamp
impl Unpin for Timestamp
impl UnwindSafe for Timestamp
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> DescribedProtobuf for T
impl<T> DescribedProtobuf for T
source§const DESCRIPTION: MessageDescription<'static> = const DESCRIPTION: MessageDescription<'static> =
<<T as DefaultEncoding>::Encoding as DescribeMessage::<T>>::DESCRIPTION;
const DESCRIPTION: MessageDescription<'static> = const DESCRIPTION: MessageDescription<'static> = <<T as DefaultEncoding>::Encoding as DescribeMessage::<T>>::DESCRIPTION;
The message description.
source§impl<T> Protobuf for Twhere
T: DefaultEncoding,
<T as DefaultEncoding>::Encoding: MessageEncode<T, NoResources> + for<'a> MessageDecode<'a, T, NoResources> + FieldEncode<T, NoResources> + for<'a> FieldDecode<'a, T, NoResources>,
impl<T> Protobuf for Twhere
T: DefaultEncoding,
<T as DefaultEncoding>::Encoding: MessageEncode<T, NoResources> + for<'a> MessageDecode<'a, T, NoResources> + FieldEncode<T, NoResources> + for<'a> FieldDecode<'a, T, NoResources>,
source§type Encoding = <T as DefaultEncoding>::Encoding
type Encoding = <T as DefaultEncoding>::Encoding
The default encoding for
Self
.