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, Global>>,
pub authorizations: Option<Vec<SlackEventAuthorization, Global>>,
}Fields
team_id: SlackTeamIdapi_app_id: SlackAppIdevent: SlackEventCallbackBodyevent_id: SlackEventIdevent_time: SlackDateTimeevent_context: Option<SlackEventContext>authed_users: Option<Vec<SlackUserId, Global>>Implementations
sourceimpl SlackPushEventCallback
impl SlackPushEventCallback
pub fn new(
team_id: SlackTeamId,
api_app_id: SlackAppId,
event: SlackEventCallbackBody,
event_id: SlackEventId,
event_time: SlackDateTime
) -> SlackPushEventCallback
pub fn team_id(&mut self, value: SlackTeamId) -> &mut SlackPushEventCallback
pub fn with_team_id(self, value: SlackTeamId) -> SlackPushEventCallback
pub fn api_app_id(&mut self, value: SlackAppId) -> &mut SlackPushEventCallback
pub fn with_api_app_id(self, value: SlackAppId) -> SlackPushEventCallback
pub fn event(
&mut self,
value: SlackEventCallbackBody
) -> &mut SlackPushEventCallback
pub fn with_event(self, value: SlackEventCallbackBody) -> SlackPushEventCallback
pub fn event_id(&mut self, value: SlackEventId) -> &mut SlackPushEventCallback
pub fn with_event_id(self, value: SlackEventId) -> SlackPushEventCallback
pub fn event_time(
&mut self,
value: SlackDateTime
) -> &mut SlackPushEventCallback
pub fn with_event_time(self, value: SlackDateTime) -> SlackPushEventCallback
pub fn event_context(
&mut self,
value: SlackEventContext
) -> &mut SlackPushEventCallback
pub fn reset_event_context(&mut self) -> &mut SlackPushEventCallback
pub fn mopt_event_context(
&mut self,
value: Option<SlackEventContext>
) -> &mut SlackPushEventCallback
pub fn with_event_context(
self,
value: SlackEventContext
) -> SlackPushEventCallback
pub fn without_event_context(self) -> SlackPushEventCallback
pub fn opt_event_context(
self,
value: Option<SlackEventContext>
) -> SlackPushEventCallback
pub fn authed_users(
&mut self,
value: Vec<SlackUserId, Global>
) -> &mut SlackPushEventCallback
pub fn reset_authed_users(&mut self) -> &mut SlackPushEventCallback
pub fn mopt_authed_users(
&mut self,
value: Option<Vec<SlackUserId, Global>>
) -> &mut SlackPushEventCallback
pub fn with_authed_users(
self,
value: Vec<SlackUserId, Global>
) -> SlackPushEventCallback
pub fn without_authed_users(self) -> SlackPushEventCallback
pub fn opt_authed_users(
self,
value: Option<Vec<SlackUserId, Global>>
) -> SlackPushEventCallback
Trait Implementations
sourceimpl Clone for SlackPushEventCallback
impl Clone for SlackPushEventCallback
sourcepub fn clone(&self) -> SlackPushEventCallback
pub 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
sourcepub fn deserialize<__D>(
__deserializer: __D
) -> Result<SlackPushEventCallback, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SlackPushEventCallback, <__D as Deserializer<'de>>::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
sourcepub fn from(value: SlackPushEventCallbackInit) -> SlackPushEventCallback
pub fn from(value: SlackPushEventCallbackInit) -> SlackPushEventCallback
Performs the conversion.
sourceimpl PartialEq<SlackPushEventCallback> for SlackPushEventCallback
impl PartialEq<SlackPushEventCallback> for SlackPushEventCallback
sourcepub fn eq(&self, other: &SlackPushEventCallback) -> bool
pub fn eq(&self, other: &SlackPushEventCallback) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcepub fn ne(&self, other: &SlackPushEventCallback) -> bool
pub fn ne(&self, other: &SlackPushEventCallback) -> bool
This method tests for !=.
sourceimpl Serialize for SlackPushEventCallback
impl Serialize for SlackPushEventCallback
sourcepub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
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