pub struct SlackApiUsersGetPresenceResponse {
pub presence: String,
pub online: Option<bool>,
pub auto_away: Option<bool>,
pub manual_away: Option<bool>,
pub connection_count: Option<u64>,
pub last_activity: Option<SlackDateTime>,
}
Fields§
§presence: String
§online: Option<bool>
§auto_away: Option<bool>
§manual_away: Option<bool>
§connection_count: Option<u64>
§last_activity: Option<SlackDateTime>
Implementations§
source§impl SlackApiUsersGetPresenceResponse
impl SlackApiUsersGetPresenceResponse
pub fn new(presence: String) -> Self
pub fn presence(&mut self, value: String) -> &mut Self
pub fn with_presence(self, value: String) -> Self
pub fn online(&mut self, value: bool) -> &mut Self
pub fn reset_online(&mut self) -> &mut Self
pub fn mopt_online(&mut self, value: Option<bool>) -> &mut Self
pub fn with_online(self, value: bool) -> Self
pub fn without_online(self) -> Self
pub fn opt_online(self, value: Option<bool>) -> Self
pub fn auto_away(&mut self, value: bool) -> &mut Self
pub fn reset_auto_away(&mut self) -> &mut Self
pub fn mopt_auto_away(&mut self, value: Option<bool>) -> &mut Self
pub fn with_auto_away(self, value: bool) -> Self
pub fn without_auto_away(self) -> Self
pub fn opt_auto_away(self, value: Option<bool>) -> Self
pub fn manual_away(&mut self, value: bool) -> &mut Self
pub fn reset_manual_away(&mut self) -> &mut Self
pub fn mopt_manual_away(&mut self, value: Option<bool>) -> &mut Self
pub fn with_manual_away(self, value: bool) -> Self
pub fn without_manual_away(self) -> Self
pub fn opt_manual_away(self, value: Option<bool>) -> Self
pub fn connection_count(&mut self, value: u64) -> &mut Self
pub fn reset_connection_count(&mut self) -> &mut Self
pub fn mopt_connection_count(&mut self, value: Option<u64>) -> &mut Self
pub fn with_connection_count(self, value: u64) -> Self
pub fn without_connection_count(self) -> Self
pub fn opt_connection_count(self, value: Option<u64>) -> Self
pub fn last_activity(&mut self, value: SlackDateTime) -> &mut Self
pub fn reset_last_activity(&mut self) -> &mut Self
pub fn mopt_last_activity(&mut self, value: Option<SlackDateTime>) -> &mut Self
pub fn with_last_activity(self, value: SlackDateTime) -> Self
pub fn without_last_activity(self) -> Self
pub fn opt_last_activity(self, value: Option<SlackDateTime>) -> Self
Trait Implementations§
source§impl Clone for SlackApiUsersGetPresenceResponse
impl Clone for SlackApiUsersGetPresenceResponse
source§fn clone(&self) -> SlackApiUsersGetPresenceResponse
fn clone(&self) -> SlackApiUsersGetPresenceResponse
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<'de> Deserialize<'de> for SlackApiUsersGetPresenceResponse
impl<'de> Deserialize<'de> for SlackApiUsersGetPresenceResponse
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 From<SlackApiUsersGetPresenceResponseInit> for SlackApiUsersGetPresenceResponse
impl From<SlackApiUsersGetPresenceResponseInit> for SlackApiUsersGetPresenceResponse
source§fn from(value: SlackApiUsersGetPresenceResponseInit) -> Self
fn from(value: SlackApiUsersGetPresenceResponseInit) -> Self
Converts to this type from the input type.
source§impl PartialEq for SlackApiUsersGetPresenceResponse
impl PartialEq for SlackApiUsersGetPresenceResponse
source§fn eq(&self, other: &SlackApiUsersGetPresenceResponse) -> bool
fn eq(&self, other: &SlackApiUsersGetPresenceResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SlackApiUsersGetPresenceResponse
Auto Trait Implementations§
impl RefUnwindSafe for SlackApiUsersGetPresenceResponse
impl Send for SlackApiUsersGetPresenceResponse
impl Sync for SlackApiUsersGetPresenceResponse
impl Unpin for SlackApiUsersGetPresenceResponse
impl UnwindSafe for SlackApiUsersGetPresenceResponse
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