#[non_exhaustive]pub struct DndInfoRequest {
pub user: Option<String>,
pub team_id: Option<String>,
}Expand description
Arguments for the Slack Web API method dnd.info: Retrieves a user’s current Do Not Disturb status.
Send it with SlackClient::dnd_info.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.user: Option<String>User to fetch status for (defaults to current user)
team_id: Option<String>Encoded team id where passed in user param belongs, required if org token is used. If no user param is passed, then a team which has access to the app should be passed
Implementations§
Trait Implementations§
Source§impl Clone for DndInfoRequest
impl Clone for DndInfoRequest
Source§impl Debug for DndInfoRequest
impl Debug for DndInfoRequest
Source§impl Default for DndInfoRequest
impl Default for DndInfoRequest
Source§impl PartialEq for DndInfoRequest
impl PartialEq for DndInfoRequest
Source§impl Serialize for DndInfoRequest
impl Serialize for DndInfoRequest
Source§impl SlackApiMethod for DndInfoRequest
impl SlackApiMethod for DndInfoRequest
impl StructuralPartialEq for DndInfoRequest
Auto Trait Implementations§
impl Freeze for DndInfoRequest
impl RefUnwindSafe for DndInfoRequest
impl Send for DndInfoRequest
impl Sync for DndInfoRequest
impl Unpin for DndInfoRequest
impl UnsafeUnpin for DndInfoRequest
impl UnwindSafe for DndInfoRequest
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