Struct slack_morphism_models::events::SlackEventCallback[][src]

pub struct SlackEventCallback {
    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: SlackTeamIdapi_app_id: SlackAppIdevent: SlackEventCallbackBodyevent_id: SlackEventIdevent_time: SlackDateTimeevent_context: Option<SlackEventContext>authed_users: Option<Vec<SlackUserId>>authorizations: Option<Vec<SlackEventAuthorization>>

Implementations

impl SlackEventCallback[src]

pub fn new(
    team_id: SlackTeamId,
    api_app_id: SlackAppId,
    event: SlackEventCallbackBody,
    event_id: SlackEventId,
    event_time: SlackDateTime
) -> Self
[src]

pub fn team_id(&mut self, value: SlackTeamId) -> &mut Self[src]

pub fn with_team_id(self, value: SlackTeamId) -> Self[src]

pub fn api_app_id(&mut self, value: SlackAppId) -> &mut Self[src]

pub fn with_api_app_id(self, value: SlackAppId) -> Self[src]

pub fn event(&mut self, value: SlackEventCallbackBody) -> &mut Self[src]

pub fn with_event(self, value: SlackEventCallbackBody) -> Self[src]

pub fn event_id(&mut self, value: SlackEventId) -> &mut Self[src]

pub fn with_event_id(self, value: SlackEventId) -> Self[src]

pub fn event_time(&mut self, value: SlackDateTime) -> &mut Self[src]

pub fn with_event_time(self, value: SlackDateTime) -> Self[src]

pub fn event_context(&mut self, value: SlackEventContext) -> &mut Self[src]

pub fn reset_event_context(&mut self) -> &mut Self[src]

pub fn mopt_event_context(
    &mut self,
    value: Option<SlackEventContext>
) -> &mut Self
[src]

pub fn with_event_context(self, value: SlackEventContext) -> Self[src]

pub fn without_event_context(self) -> Self[src]

pub fn opt_event_context(self, value: Option<SlackEventContext>) -> Self[src]

pub fn authed_users(&mut self, value: Vec<SlackUserId>) -> &mut Self[src]

pub fn reset_authed_users(&mut self) -> &mut Self[src]

pub fn mopt_authed_users(
    &mut self,
    value: Option<Vec<SlackUserId>>
) -> &mut Self
[src]

pub fn with_authed_users(self, value: Vec<SlackUserId>) -> Self[src]

pub fn without_authed_users(self) -> Self[src]

pub fn opt_authed_users(self, value: Option<Vec<SlackUserId>>) -> Self[src]

pub fn authorizations(
    &mut self,
    value: Vec<SlackEventAuthorization>
) -> &mut Self
[src]

pub fn reset_authorizations(&mut self) -> &mut Self[src]

pub fn mopt_authorizations(
    &mut self,
    value: Option<Vec<SlackEventAuthorization>>
) -> &mut Self
[src]

pub fn with_authorizations(self, value: Vec<SlackEventAuthorization>) -> Self[src]

pub fn without_authorizations(self) -> Self[src]

pub fn opt_authorizations(
    self,
    value: Option<Vec<SlackEventAuthorization>>
) -> Self
[src]

Trait Implementations

impl Clone for SlackEventCallback[src]

impl Debug for SlackEventCallback[src]

impl<'de> Deserialize<'de> for SlackEventCallback[src]

impl From<SlackEventCallbackInit> for SlackEventCallback[src]

impl PartialEq<SlackEventCallback> for SlackEventCallback[src]

impl Serialize for SlackEventCallback[src]

impl StructuralPartialEq for SlackEventCallback[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.