[][src]Struct slack_morphism::api::SlackApiUsersGetPresenceResponse

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: Stringonline: Option<bool>auto_away: Option<bool>manual_away: Option<bool>connection_count: Option<u64>last_activity: Option<SlackDateTime>

Implementations

impl SlackApiUsersGetPresenceResponse[src]

pub fn new(presence: String) -> Self[src]

pub fn presence(&mut self, value: String) -> &mut Self[src]

pub fn with_presence(self, value: String) -> Self[src]

pub fn online(&mut self, value: bool) -> &mut Self[src]

pub fn reset_online(&mut self) -> &mut Self[src]

pub fn mopt_online(&mut self, value: Option<bool>) -> &mut Self[src]

pub fn with_online(self, value: bool) -> Self[src]

pub fn without_online(self) -> Self[src]

pub fn opt_online(self, value: Option<bool>) -> Self[src]

pub fn auto_away(&mut self, value: bool) -> &mut Self[src]

pub fn reset_auto_away(&mut self) -> &mut Self[src]

pub fn mopt_auto_away(&mut self, value: Option<bool>) -> &mut Self[src]

pub fn with_auto_away(self, value: bool) -> Self[src]

pub fn without_auto_away(self) -> Self[src]

pub fn opt_auto_away(self, value: Option<bool>) -> Self[src]

pub fn manual_away(&mut self, value: bool) -> &mut Self[src]

pub fn reset_manual_away(&mut self) -> &mut Self[src]

pub fn mopt_manual_away(&mut self, value: Option<bool>) -> &mut Self[src]

pub fn with_manual_away(self, value: bool) -> Self[src]

pub fn without_manual_away(self) -> Self[src]

pub fn opt_manual_away(self, value: Option<bool>) -> Self[src]

pub fn connection_count(&mut self, value: u64) -> &mut Self[src]

pub fn reset_connection_count(&mut self) -> &mut Self[src]

pub fn mopt_connection_count(&mut self, value: Option<u64>) -> &mut Self[src]

pub fn with_connection_count(self, value: u64) -> Self[src]

pub fn without_connection_count(self) -> Self[src]

pub fn opt_connection_count(self, value: Option<u64>) -> Self[src]

pub fn last_activity(&mut self, value: SlackDateTime) -> &mut Self[src]

pub fn reset_last_activity(&mut self) -> &mut Self[src]

pub fn mopt_last_activity(&mut self, value: Option<SlackDateTime>) -> &mut Self[src]

pub fn with_last_activity(self, value: SlackDateTime) -> Self[src]

pub fn without_last_activity(self) -> Self[src]

pub fn opt_last_activity(self, value: Option<SlackDateTime>) -> Self[src]

Trait Implementations

impl Clone for SlackApiUsersGetPresenceResponse[src]

impl Debug for SlackApiUsersGetPresenceResponse[src]

impl<'de> Deserialize<'de> for SlackApiUsersGetPresenceResponse[src]

impl From<SlackApiUsersGetPresenceResponseInit> for SlackApiUsersGetPresenceResponse[src]

impl PartialEq<SlackApiUsersGetPresenceResponse> for SlackApiUsersGetPresenceResponse[src]

impl Serialize for SlackApiUsersGetPresenceResponse[src]

impl StructuralPartialEq for SlackApiUsersGetPresenceResponse[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.