pub struct LocalTimestampWrapper {
pub proto: LocalTimestampProto,
}Fields§
§proto: LocalTimestampProtoImplementations§
Source§impl LocalTimestampWrapper
impl LocalTimestampWrapper
pub fn new(proto: LocalTimestampProto) -> Self
pub fn now() -> Self
pub fn from_utc_datetime(now: NaiveDateTime) -> Self
pub fn from_datetime(now: NaiveDateTime, time_zone_str: String) -> Self
Trait Implementations§
Source§impl AsRef<LocalTimestampProto> for LocalTimestampWrapper
impl AsRef<LocalTimestampProto> for LocalTimestampWrapper
Source§fn as_ref(&self) -> &LocalTimestampProto
fn as_ref(&self) -> &LocalTimestampProto
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Display for LocalTimestampWrapper
impl Display for LocalTimestampWrapper
Source§impl From<&LocalTimestampWrapper> for NaiveDateTime
impl From<&LocalTimestampWrapper> for NaiveDateTime
Source§fn from(wrapper: &LocalTimestampWrapper) -> NaiveDateTime
fn from(wrapper: &LocalTimestampWrapper) -> NaiveDateTime
Converts to this type from the input type.
Source§impl From<LocalTimestampWrapper> for LocalTimestampProto
impl From<LocalTimestampWrapper> for LocalTimestampProto
Source§fn from(wrapper: LocalTimestampWrapper) -> LocalTimestampProto
fn from(wrapper: LocalTimestampWrapper) -> LocalTimestampProto
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LocalTimestampWrapper
impl RefUnwindSafe for LocalTimestampWrapper
impl Send for LocalTimestampWrapper
impl Sync for LocalTimestampWrapper
impl Unpin for LocalTimestampWrapper
impl UnwindSafe for LocalTimestampWrapper
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request