Struct slack_morphism::api::SlackOAuthV2AccessTokenResponse [−][src]
pub struct SlackOAuthV2AccessTokenResponse {
pub access_token: String,
pub token_type: SlackApiTokenType,
pub scope: SlackApiTokenScope,
pub bot_user_id: Option<SlackUserId>,
pub app_id: SlackAppId,
pub team: SlackTeamInfo,
pub authed_user: SlackOAuthV2AuthedUser,
pub incoming_webhook: Option<SlackOAuthIncomingWebHook>,
}
Fields
access_token: String
token_type: SlackApiTokenType
scope: SlackApiTokenScope
bot_user_id: Option<SlackUserId>
app_id: SlackAppId
team: SlackTeamInfo
authed_user: SlackOAuthV2AuthedUser
incoming_webhook: Option<SlackOAuthIncomingWebHook>
Implementations
pub fn new(
access_token: String,
token_type: SlackApiTokenType,
scope: SlackApiTokenScope,
app_id: SlackAppId,
team: SlackTeamInfo,
authed_user: SlackOAuthV2AuthedUser
) -> Self
pub fn mopt_incoming_webhook(
&mut self,
value: Option<SlackOAuthIncomingWebHook>
) -> &mut Self
Trait Implementations
fn 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
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl Send for SlackOAuthV2AccessTokenResponse
impl Sync for SlackOAuthV2AccessTokenResponse
impl Unpin for SlackOAuthV2AccessTokenResponse
Blanket Implementations
Mutably borrows from an owned value. Read more