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
Sourcepub fn new(presence: String) -> Self
pub fn new(presence: String) -> Self
Creates a new SlackApiUsersGetPresenceResponse from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn with_presence(self, value: String) -> Self
pub fn with_presence(self, value: String) -> Self
Returns self with presence set to value.
Sourcepub fn reset_online(&mut self) -> &mut Self
pub fn reset_online(&mut self) -> &mut Self
Sets online to None.
Sourcepub fn mopt_online(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_online(&mut self, value: Option<bool>) -> &mut Self
Sets online to the given Option.
Sourcepub fn with_online(self, value: bool) -> Self
pub fn with_online(self, value: bool) -> Self
Returns self with online set to Some(value).
Sourcepub fn without_online(self) -> Self
pub fn without_online(self) -> Self
Returns self with online set to None.
Sourcepub fn opt_online(self, value: Option<bool>) -> Self
pub fn opt_online(self, value: Option<bool>) -> Self
Returns self with online set to the given Option.
Sourcepub fn reset_auto_away(&mut self) -> &mut Self
pub fn reset_auto_away(&mut self) -> &mut Self
Sets auto_away to None.
Sourcepub fn mopt_auto_away(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_auto_away(&mut self, value: Option<bool>) -> &mut Self
Sets auto_away to the given Option.
Sourcepub fn with_auto_away(self, value: bool) -> Self
pub fn with_auto_away(self, value: bool) -> Self
Returns self with auto_away set to Some(value).
Sourcepub fn without_auto_away(self) -> Self
pub fn without_auto_away(self) -> Self
Returns self with auto_away set to None.
Sourcepub fn opt_auto_away(self, value: Option<bool>) -> Self
pub fn opt_auto_away(self, value: Option<bool>) -> Self
Returns self with auto_away set to the given Option.
Sourcepub fn manual_away(&mut self, value: bool) -> &mut Self
pub fn manual_away(&mut self, value: bool) -> &mut Self
Sets manual_away to Some(value).
Sourcepub fn reset_manual_away(&mut self) -> &mut Self
pub fn reset_manual_away(&mut self) -> &mut Self
Sets manual_away to None.
Sourcepub fn mopt_manual_away(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_manual_away(&mut self, value: Option<bool>) -> &mut Self
Sets manual_away to the given Option.
Sourcepub fn with_manual_away(self, value: bool) -> Self
pub fn with_manual_away(self, value: bool) -> Self
Returns self with manual_away set to Some(value).
Sourcepub fn without_manual_away(self) -> Self
pub fn without_manual_away(self) -> Self
Returns self with manual_away set to None.
Sourcepub fn opt_manual_away(self, value: Option<bool>) -> Self
pub fn opt_manual_away(self, value: Option<bool>) -> Self
Returns self with manual_away set to the given Option.
Sourcepub fn connection_count(&mut self, value: u64) -> &mut Self
pub fn connection_count(&mut self, value: u64) -> &mut Self
Sets connection_count to Some(value).
Sourcepub fn reset_connection_count(&mut self) -> &mut Self
pub fn reset_connection_count(&mut self) -> &mut Self
Sets connection_count to None.
Sourcepub fn mopt_connection_count(&mut self, value: Option<u64>) -> &mut Self
pub fn mopt_connection_count(&mut self, value: Option<u64>) -> &mut Self
Sets connection_count to the given Option.
Sourcepub fn with_connection_count(self, value: u64) -> Self
pub fn with_connection_count(self, value: u64) -> Self
Returns self with connection_count set to Some(value).
Sourcepub fn without_connection_count(self) -> Self
pub fn without_connection_count(self) -> Self
Returns self with connection_count set to None.
Sourcepub fn opt_connection_count(self, value: Option<u64>) -> Self
pub fn opt_connection_count(self, value: Option<u64>) -> Self
Returns self with connection_count set to the given Option.
Sourcepub fn last_activity(&mut self, value: SlackDateTime) -> &mut Self
pub fn last_activity(&mut self, value: SlackDateTime) -> &mut Self
Sets last_activity to Some(value).
Sourcepub fn reset_last_activity(&mut self) -> &mut Self
pub fn reset_last_activity(&mut self) -> &mut Self
Sets last_activity to None.
Sourcepub fn mopt_last_activity(&mut self, value: Option<SlackDateTime>) -> &mut Self
pub fn mopt_last_activity(&mut self, value: Option<SlackDateTime>) -> &mut Self
Sets last_activity to the given Option.
Sourcepub fn with_last_activity(self, value: SlackDateTime) -> Self
pub fn with_last_activity(self, value: SlackDateTime) -> Self
Returns self with last_activity set to Some(value).
Sourcepub fn without_last_activity(self) -> Self
pub fn without_last_activity(self) -> Self
Returns self with last_activity set to None.
Sourcepub fn opt_last_activity(self, value: Option<SlackDateTime>) -> Self
pub fn opt_last_activity(self, value: Option<SlackDateTime>) -> Self
Returns self with last_activity set to the given Option.