pub struct SlackPushEventCallback {
pub team_id: SlackTeamId,
pub api_app_id: SlackAppId,
pub event: SlackEventCallbackBody,
pub event_id: SlackEventId,
pub event_time: SlackDateTime,
pub event_context: Option<SlackEventContext>,
pub authed_users: Option<Vec<SlackUserId>>,
pub authorizations: Option<Vec<SlackEventAuthorization>>,
}Fields§
§team_id: SlackTeamId§api_app_id: SlackAppId§event: SlackEventCallbackBody§event_id: SlackEventId§event_time: SlackDateTime§event_context: Option<SlackEventContext>§authed_users: Option<Vec<SlackUserId>>Implementations§
Source§impl SlackPushEventCallback
impl SlackPushEventCallback
Sourcepub fn new(
team_id: SlackTeamId,
api_app_id: SlackAppId,
event: SlackEventCallbackBody,
event_id: SlackEventId,
event_time: SlackDateTime,
) -> Self
pub fn new( team_id: SlackTeamId, api_app_id: SlackAppId, event: SlackEventCallbackBody, event_id: SlackEventId, event_time: SlackDateTime, ) -> Self
Creates a new SlackPushEventCallback from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn team_id(&mut self, value: SlackTeamId) -> &mut Self
pub fn team_id(&mut self, value: SlackTeamId) -> &mut Self
Sets team_id to value.
Sourcepub fn with_team_id(self, value: SlackTeamId) -> Self
pub fn with_team_id(self, value: SlackTeamId) -> Self
Returns self with team_id set to value.
Sourcepub fn api_app_id(&mut self, value: SlackAppId) -> &mut Self
pub fn api_app_id(&mut self, value: SlackAppId) -> &mut Self
Sets api_app_id to value.
Sourcepub fn with_api_app_id(self, value: SlackAppId) -> Self
pub fn with_api_app_id(self, value: SlackAppId) -> Self
Returns self with api_app_id set to value.
Sourcepub fn event(&mut self, value: SlackEventCallbackBody) -> &mut Self
pub fn event(&mut self, value: SlackEventCallbackBody) -> &mut Self
Sets event to value.
Sourcepub fn with_event(self, value: SlackEventCallbackBody) -> Self
pub fn with_event(self, value: SlackEventCallbackBody) -> Self
Returns self with event set to value.
Sourcepub fn event_id(&mut self, value: SlackEventId) -> &mut Self
pub fn event_id(&mut self, value: SlackEventId) -> &mut Self
Sets event_id to value.
Sourcepub fn with_event_id(self, value: SlackEventId) -> Self
pub fn with_event_id(self, value: SlackEventId) -> Self
Returns self with event_id set to value.
Sourcepub fn event_time(&mut self, value: SlackDateTime) -> &mut Self
pub fn event_time(&mut self, value: SlackDateTime) -> &mut Self
Sets event_time to value.
Sourcepub fn with_event_time(self, value: SlackDateTime) -> Self
pub fn with_event_time(self, value: SlackDateTime) -> Self
Returns self with event_time set to value.
Sourcepub fn event_context(&mut self, value: SlackEventContext) -> &mut Self
pub fn event_context(&mut self, value: SlackEventContext) -> &mut Self
Sets event_context to Some(value).
Sourcepub fn reset_event_context(&mut self) -> &mut Self
pub fn reset_event_context(&mut self) -> &mut Self
Sets event_context to None.
Sourcepub fn mopt_event_context(
&mut self,
value: Option<SlackEventContext>,
) -> &mut Self
pub fn mopt_event_context( &mut self, value: Option<SlackEventContext>, ) -> &mut Self
Sets event_context to the given Option.
Sourcepub fn with_event_context(self, value: SlackEventContext) -> Self
pub fn with_event_context(self, value: SlackEventContext) -> Self
Returns self with event_context set to Some(value).
Sourcepub fn without_event_context(self) -> Self
pub fn without_event_context(self) -> Self
Returns self with event_context set to None.
Sourcepub fn opt_event_context(self, value: Option<SlackEventContext>) -> Self
pub fn opt_event_context(self, value: Option<SlackEventContext>) -> Self
Returns self with event_context set to the given Option.
Sourcepub fn authed_users(&mut self, value: Vec<SlackUserId>) -> &mut Self
pub fn authed_users(&mut self, value: Vec<SlackUserId>) -> &mut Self
Sets authed_users to Some(value).
Sourcepub fn reset_authed_users(&mut self) -> &mut Self
pub fn reset_authed_users(&mut self) -> &mut Self
Sets authed_users to None.
Sourcepub fn mopt_authed_users(
&mut self,
value: Option<Vec<SlackUserId>>,
) -> &mut Self
pub fn mopt_authed_users( &mut self, value: Option<Vec<SlackUserId>>, ) -> &mut Self
Sets authed_users to the given Option.
Sourcepub fn with_authed_users(self, value: Vec<SlackUserId>) -> Self
pub fn with_authed_users(self, value: Vec<SlackUserId>) -> Self
Returns self with authed_users set to Some(value).
Sourcepub fn without_authed_users(self) -> Self
pub fn without_authed_users(self) -> Self
Returns self with authed_users set to None.
Sourcepub fn opt_authed_users(self, value: Option<Vec<SlackUserId>>) -> Self
pub fn opt_authed_users(self, value: Option<Vec<SlackUserId>>) -> Self
Returns self with authed_users set to the given Option.
Sets authorizations to Some(value).
Sets authorizations to None.
Sets authorizations to the given Option.
Returns self with authorizations set to Some(value).
Returns self with authorizations set to None.
Returns self with authorizations set to the given Option.