Struct slack_morphism::prelude::SlackPushEventCallback
source · 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
pub fn new( team_id: SlackTeamId, api_app_id: SlackAppId, event: SlackEventCallbackBody, event_id: SlackEventId, event_time: SlackDateTime ) -> Self
pub fn team_id(&mut self, value: SlackTeamId) -> &mut Self
pub fn with_team_id(self, value: SlackTeamId) -> Self
pub fn api_app_id(&mut self, value: SlackAppId) -> &mut Self
pub fn with_api_app_id(self, value: SlackAppId) -> Self
pub fn event(&mut self, value: SlackEventCallbackBody) -> &mut Self
pub fn with_event(self, value: SlackEventCallbackBody) -> Self
pub fn event_id(&mut self, value: SlackEventId) -> &mut Self
pub fn with_event_id(self, value: SlackEventId) -> Self
pub fn event_time(&mut self, value: SlackDateTime) -> &mut Self
pub fn with_event_time(self, value: SlackDateTime) -> Self
pub fn event_context(&mut self, value: SlackEventContext) -> &mut Self
pub fn reset_event_context(&mut self) -> &mut Self
pub fn mopt_event_context( &mut self, value: Option<SlackEventContext> ) -> &mut Self
pub fn with_event_context(self, value: SlackEventContext) -> Self
pub fn without_event_context(self) -> Self
pub fn opt_event_context(self, value: Option<SlackEventContext>) -> Self
pub fn authed_users(&mut self, value: Vec<SlackUserId>) -> &mut Self
pub fn reset_authed_users(&mut self) -> &mut Self
pub fn mopt_authed_users(&mut self, value: Option<Vec<SlackUserId>>) -> &mut Self
pub fn with_authed_users(self, value: Vec<SlackUserId>) -> Self
pub fn without_authed_users(self) -> Self
pub fn opt_authed_users(self, value: Option<Vec<SlackUserId>>) -> Self
Trait Implementations§
source§impl Clone for SlackPushEventCallback
impl Clone for SlackPushEventCallback
source§fn clone(&self) -> SlackPushEventCallback
fn clone(&self) -> SlackPushEventCallback
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SlackPushEventCallback
impl Debug for SlackPushEventCallback
source§impl<'de> Deserialize<'de> for SlackPushEventCallback
impl<'de> Deserialize<'de> for SlackPushEventCallback
source§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
source§impl From<SlackPushEventCallbackInit> for SlackPushEventCallback
impl From<SlackPushEventCallbackInit> for SlackPushEventCallback
source§fn from(value: SlackPushEventCallbackInit) -> Self
fn from(value: SlackPushEventCallbackInit) -> Self
Converts to this type from the input type.
source§impl PartialEq<SlackPushEventCallback> for SlackPushEventCallback
impl PartialEq<SlackPushEventCallback> for SlackPushEventCallback
source§fn eq(&self, other: &SlackPushEventCallback) -> bool
fn eq(&self, other: &SlackPushEventCallback) -> bool
This method tests for
self and other values to be equal, and is used
by ==.