pub struct SlackOAuthV2AuthedUser {
pub id: SlackUserId,
pub scope: Option<SlackApiTokenScope>,
pub access_token: Option<SlackApiTokenValue>,
pub token_type: Option<SlackApiTokenType>,
}Fields§
§id: SlackUserId§scope: Option<SlackApiTokenScope>§access_token: Option<SlackApiTokenValue>§token_type: Option<SlackApiTokenType>Implementations§
Source§impl SlackOAuthV2AuthedUser
impl SlackOAuthV2AuthedUser
Sourcepub fn new(id: SlackUserId) -> Self
pub fn new(id: SlackUserId) -> Self
Creates a new SlackOAuthV2AuthedUser from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn id(&mut self, value: SlackUserId) -> &mut Self
pub fn id(&mut self, value: SlackUserId) -> &mut Self
Sets id to value.
Sourcepub fn with_id(self, value: SlackUserId) -> Self
pub fn with_id(self, value: SlackUserId) -> Self
Returns self with id set to value.
Sourcepub fn scope(&mut self, value: SlackApiTokenScope) -> &mut Self
pub fn scope(&mut self, value: SlackApiTokenScope) -> &mut Self
Sets scope to Some(value).
Sourcepub fn reset_scope(&mut self) -> &mut Self
pub fn reset_scope(&mut self) -> &mut Self
Sets scope to None.
Sourcepub fn mopt_scope(&mut self, value: Option<SlackApiTokenScope>) -> &mut Self
pub fn mopt_scope(&mut self, value: Option<SlackApiTokenScope>) -> &mut Self
Sets scope to the given Option.
Sourcepub fn with_scope(self, value: SlackApiTokenScope) -> Self
pub fn with_scope(self, value: SlackApiTokenScope) -> Self
Returns self with scope set to Some(value).
Sourcepub fn without_scope(self) -> Self
pub fn without_scope(self) -> Self
Returns self with scope set to None.
Sourcepub fn opt_scope(self, value: Option<SlackApiTokenScope>) -> Self
pub fn opt_scope(self, value: Option<SlackApiTokenScope>) -> Self
Returns self with scope set to the given Option.
Sourcepub fn access_token(&mut self, value: SlackApiTokenValue) -> &mut Self
pub fn access_token(&mut self, value: SlackApiTokenValue) -> &mut Self
Sets access_token to Some(value).
Sourcepub fn reset_access_token(&mut self) -> &mut Self
pub fn reset_access_token(&mut self) -> &mut Self
Sets access_token to None.
Sourcepub fn mopt_access_token(
&mut self,
value: Option<SlackApiTokenValue>,
) -> &mut Self
pub fn mopt_access_token( &mut self, value: Option<SlackApiTokenValue>, ) -> &mut Self
Sets access_token to the given Option.
Sourcepub fn with_access_token(self, value: SlackApiTokenValue) -> Self
pub fn with_access_token(self, value: SlackApiTokenValue) -> Self
Returns self with access_token set to Some(value).
Sourcepub fn without_access_token(self) -> Self
pub fn without_access_token(self) -> Self
Returns self with access_token set to None.
Sourcepub fn opt_access_token(self, value: Option<SlackApiTokenValue>) -> Self
pub fn opt_access_token(self, value: Option<SlackApiTokenValue>) -> Self
Returns self with access_token set to the given Option.
Sourcepub fn token_type(&mut self, value: SlackApiTokenType) -> &mut Self
pub fn token_type(&mut self, value: SlackApiTokenType) -> &mut Self
Sets token_type to Some(value).
Sourcepub fn reset_token_type(&mut self) -> &mut Self
pub fn reset_token_type(&mut self) -> &mut Self
Sets token_type to None.
Sourcepub fn mopt_token_type(&mut self, value: Option<SlackApiTokenType>) -> &mut Self
pub fn mopt_token_type(&mut self, value: Option<SlackApiTokenType>) -> &mut Self
Sets token_type to the given Option.
Sourcepub fn with_token_type(self, value: SlackApiTokenType) -> Self
pub fn with_token_type(self, value: SlackApiTokenType) -> Self
Returns self with token_type set to Some(value).
Sourcepub fn without_token_type(self) -> Self
pub fn without_token_type(self) -> Self
Returns self with token_type set to None.
Sourcepub fn opt_token_type(self, value: Option<SlackApiTokenType>) -> Self
pub fn opt_token_type(self, value: Option<SlackApiTokenType>) -> Self
Returns self with token_type set to the given Option.