[][src]Struct slack_morphism::listener::SlackEventAuthorization

pub struct SlackEventAuthorization {
    pub team_id: SlackTeamId,
    pub user_id: SlackUserId,
    pub is_bot: Option<bool>,
}

Fields

team_id: SlackTeamIduser_id: SlackUserIdis_bot: Option<bool>

Implementations

impl SlackEventAuthorization[src]

pub fn new(
    team_id: SlackTeamId,
    user_id: SlackUserId
) -> SlackEventAuthorization
[src]

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

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

pub fn user_id(&mut self, value: SlackUserId) -> &mut SlackEventAuthorization[src]

pub fn with_user_id(self, value: SlackUserId) -> SlackEventAuthorization[src]

pub fn is_bot(&mut self, value: bool) -> &mut SlackEventAuthorization[src]

pub fn reset_is_bot(&mut self) -> &mut SlackEventAuthorization[src]

pub fn mopt_is_bot(
    &mut self,
    value: Option<bool>
) -> &mut SlackEventAuthorization
[src]

pub fn with_is_bot(self, value: bool) -> SlackEventAuthorization[src]

pub fn without_is_bot(self) -> SlackEventAuthorization[src]

pub fn opt_is_bot(self, value: Option<bool>) -> SlackEventAuthorization[src]

Trait Implementations

impl Clone for SlackEventAuthorization[src]

impl Debug for SlackEventAuthorization[src]

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

impl From<SlackEventAuthorizationInit> for SlackEventAuthorization[src]

impl PartialEq<SlackEventAuthorization> for SlackEventAuthorization[src]

impl Serialize for SlackEventAuthorization[src]

impl StructuralPartialEq for SlackEventAuthorization[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> Instrument 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.