#[non_exhaustive]pub struct AdminUsersSessionSetSettingsRequest {
pub user_ids: Vec<String>,
pub duration: Option<i64>,
pub desktop_app_browser_quit: Option<bool>,
}Expand description
Arguments for the Slack Web API method admin.users.session.setSettings: Configure the user-level session settings—the session duration and what happens when the client closes—for one or more users.
Send it with SlackClient::admin_users_session_set_settings.
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_ids: Vec<String>The list of up to 1,000 user IDs to apply the session settings for
duration: Option<i64>The session duration, in seconds. The minimum value is 28800, which represents 8 hours; the max value is 315569520 or 10 years (that’s a long Slack session).
desktop_app_browser_quit: Option<bool>Terminate the session when the client—either the desktop app or a browser window—is closed.
Implementations§
Trait Implementations§
impl StructuralPartialEq for AdminUsersSessionSetSettingsRequest
Auto Trait Implementations§
impl Freeze for AdminUsersSessionSetSettingsRequest
impl RefUnwindSafe for AdminUsersSessionSetSettingsRequest
impl Send for AdminUsersSessionSetSettingsRequest
impl Sync for AdminUsersSessionSetSettingsRequest
impl Unpin for AdminUsersSessionSetSettingsRequest
impl UnsafeUnpin for AdminUsersSessionSetSettingsRequest
impl UnwindSafe for AdminUsersSessionSetSettingsRequest
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