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: SlackTeamIdapi_app_id: SlackAppIdevent: SlackEventCallbackBodyevent_id: SlackEventIdevent_time: SlackDateTimeevent_context: Option<SlackEventContext>authed_users: Option<Vec<SlackUserId>>Implementations
sourceimpl 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
sourceimpl Clone for SlackPushEventCallback
impl Clone for SlackPushEventCallback
sourcefn clone(&self) -> SlackPushEventCallback
fn clone(&self) -> SlackPushEventCallback
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for SlackPushEventCallback
impl Debug for SlackPushEventCallback
sourceimpl<'de> Deserialize<'de> for SlackPushEventCallback
impl<'de> Deserialize<'de> for SlackPushEventCallback
sourcefn 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
sourceimpl From<SlackPushEventCallbackInit> for SlackPushEventCallback
impl From<SlackPushEventCallbackInit> for SlackPushEventCallback
sourcefn from(value: SlackPushEventCallbackInit) -> Self
fn from(value: SlackPushEventCallbackInit) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<SlackPushEventCallback> for SlackPushEventCallback
impl PartialEq<SlackPushEventCallback> for SlackPushEventCallback
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &SlackPushEventCallback) -> bool
fn ne(&self, other: &SlackPushEventCallback) -> bool
This method tests for !=.
sourceimpl Serialize for SlackPushEventCallback
impl Serialize for SlackPushEventCallback
impl StructuralPartialEq for SlackPushEventCallback
Auto Trait Implementations
impl RefUnwindSafe for SlackPushEventCallback
impl Send for SlackPushEventCallback
impl Sync for SlackPushEventCallback
impl Unpin for SlackPushEventCallback
impl UnwindSafe for SlackPushEventCallback
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more