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
sourceimpl 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
sourceimpl Clone for SlackApiUsersGetPresenceResponse
impl Clone for SlackApiUsersGetPresenceResponse
sourcefn clone(&self) -> SlackApiUsersGetPresenceResponse
fn clone(&self) -> SlackApiUsersGetPresenceResponse
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'de> Deserialize<'de> for SlackApiUsersGetPresenceResponse
impl<'de> Deserialize<'de> for SlackApiUsersGetPresenceResponse
sourcefn 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
sourceimpl From<SlackApiUsersGetPresenceResponseInit> for SlackApiUsersGetPresenceResponse
impl From<SlackApiUsersGetPresenceResponseInit> for SlackApiUsersGetPresenceResponse
sourcefn from(value: SlackApiUsersGetPresenceResponseInit) -> Self
fn from(value: SlackApiUsersGetPresenceResponseInit) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<SlackApiUsersGetPresenceResponse> for SlackApiUsersGetPresenceResponse
impl PartialEq<SlackApiUsersGetPresenceResponse> for SlackApiUsersGetPresenceResponse
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &SlackApiUsersGetPresenceResponse) -> bool
fn ne(&self, other: &SlackApiUsersGetPresenceResponse) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more