pub struct GetServerTimeResponse {
pub time: u64,
pub time_string: String,
}Expand description
Structure representing time information
Fields§
§time: u64Time represented as a UNIX timestamp
time_string: StringTime described in form set on server (local time of server)
Implementations§
Source§impl GetServerTimeResponse
impl GetServerTimeResponse
Sourcepub fn with_time_string(self, value: impl Into<String>) -> Self
pub fn with_time_string(self, value: impl Into<String>) -> Self
Sets the time_string field of this struct.
Trait Implementations§
Source§impl Clone for GetServerTimeResponse
impl Clone for GetServerTimeResponse
Source§fn clone(&self) -> GetServerTimeResponse
fn clone(&self) -> GetServerTimeResponse
Returns a copy of the value. Read more
1.0.0 · 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 GetServerTimeResponse
impl Debug for GetServerTimeResponse
Source§impl Default for GetServerTimeResponse
impl Default for GetServerTimeResponse
Source§fn default() -> GetServerTimeResponse
fn default() -> GetServerTimeResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetServerTimeResponse
impl<'de> Deserialize<'de> for GetServerTimeResponse
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GetServerTimeResponse
impl PartialEq for GetServerTimeResponse
Source§impl Serialize for GetServerTimeResponse
impl Serialize for GetServerTimeResponse
impl StructuralPartialEq for GetServerTimeResponse
Auto Trait Implementations§
impl Freeze for GetServerTimeResponse
impl RefUnwindSafe for GetServerTimeResponse
impl Send for GetServerTimeResponse
impl Sync for GetServerTimeResponse
impl Unpin for GetServerTimeResponse
impl UnwindSafe for GetServerTimeResponse
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)