pub struct DateTimeSet {
pub datetime: NaiveDateTime,
}Expand description
Date-Time Set command
Fields§
§datetime: NaiveDateTimeString in format: yyyy-MM-dd'T'HH:mm:ss.SSS.
Trait Implementations§
Source§impl Clone for DateTimeSet
impl Clone for DateTimeSet
Source§fn clone(&self) -> DateTimeSet
fn clone(&self) -> DateTimeSet
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 DateTimeSet
impl Debug for DateTimeSet
Source§impl McuMgrCommand for DateTimeSet
impl McuMgrCommand for DateTimeSet
Source§type Payload = DateTimeSet
type Payload = DateTimeSet
the data payload type
Source§type Response = DateTimeSetResponse
type Response = DateTimeSetResponse
the response type of the command
Source§fn is_write_operation(&self) -> bool
fn is_write_operation(&self) -> bool
whether this command is a read or write operation
Source§fn command_id(&self) -> u8
fn command_id(&self) -> u8
the command ID
Source§impl PartialEq for DateTimeSet
impl PartialEq for DateTimeSet
Source§fn eq(&self, other: &DateTimeSet) -> bool
fn eq(&self, other: &DateTimeSet) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DateTimeSet
impl Serialize for DateTimeSet
impl Eq for DateTimeSet
impl StructuralPartialEq for DateTimeSet
Auto Trait Implementations§
impl Freeze for DateTimeSet
impl RefUnwindSafe for DateTimeSet
impl Send for DateTimeSet
impl Sync for DateTimeSet
impl Unpin for DateTimeSet
impl UnsafeUnpin for DateTimeSet
impl UnwindSafe for DateTimeSet
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more