pub struct UpdateUserCustomStatusRequest {
pub emoji: String,
pub text: String,
pub duration: Option<String>,
pub expires_at: Option<String>,
}
Fields§
§emoji: String
Any emoji
text: String
Any custom status text
duration: Option<String>
Duration of custom status, can be thirty_minutes
, one_hour
, four_hours
, today
, this_week
or date_and_time
expires_at: Option<String>
The time at which custom status should be expired. It should be in ISO format.
Implementations§
Source§impl UpdateUserCustomStatusRequest
impl UpdateUserCustomStatusRequest
pub fn new(emoji: String, text: String) -> UpdateUserCustomStatusRequest
Trait Implementations§
Source§impl Clone for UpdateUserCustomStatusRequest
impl Clone for UpdateUserCustomStatusRequest
Source§fn clone(&self) -> UpdateUserCustomStatusRequest
fn clone(&self) -> UpdateUserCustomStatusRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for UpdateUserCustomStatusRequest
impl Default for UpdateUserCustomStatusRequest
Source§fn default() -> UpdateUserCustomStatusRequest
fn default() -> UpdateUserCustomStatusRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateUserCustomStatusRequest
impl<'de> Deserialize<'de> for UpdateUserCustomStatusRequest
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 UpdateUserCustomStatusRequest
impl PartialEq for UpdateUserCustomStatusRequest
Source§fn eq(&self, other: &UpdateUserCustomStatusRequest) -> bool
fn eq(&self, other: &UpdateUserCustomStatusRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for UpdateUserCustomStatusRequest
Auto Trait Implementations§
impl Freeze for UpdateUserCustomStatusRequest
impl RefUnwindSafe for UpdateUserCustomStatusRequest
impl Send for UpdateUserCustomStatusRequest
impl Sync for UpdateUserCustomStatusRequest
impl Unpin for UpdateUserCustomStatusRequest
impl UnwindSafe for UpdateUserCustomStatusRequest
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